Add playbook for creating a DigitalOcean droplet

This commit is contained in:
Oliver Davies 2020-02-06 09:08:26 +00:00
parent 5a8a63acd8
commit 1260247e48
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,21 @@
---
- hosts: localhost
gather_facts: False
vars_files:
- ./vars/digitalocean_vault.yml
- ./vars/digitalocean_vars.yml
tasks:
- name: Create a Droplet
digital_ocean_droplet:
state: present
name: oliverdavies-uk
oauth_token: '{{ digitalocean_api_key }}'
size: 1gb
region: lon1
image: ubuntu-16-04-x64
wait_timeout: 500
register: droplet
- debug: var=droplet