Referencing this earlier Gist, of course.
The following are from a series of Ansible Playbooks, associated files, and wrapper shell functions which I have been using for some months for multiple projects, all hosted on DigitalOcean. Until approximately 0130 Singapore time on Wednesday 17 January 2017 (GMT+8; 1730 GMT or 0930 PDT on 16 January), these scripts had been working quite well. The basic workflow is straightforward:
- In the
new_droplet.yml
Playbook,- Create a new Droplet, with specified values for name, image, region, size, and other values including
ssh_key_ids
, which is set to the (single) DigitalOcean SSH key ID for the DO user owning the Droplet to be created; - Tag the newly-created Droplet so that it is uniquely identifiable using the Ansible
digital_ocean.py
dynamic-inventory script;
- Create a new Droplet, with specified values for name, image, region, size, and other values including
- In the
provision_droplet.yml
Pla