DO Ideas 2

Create docs for Ansible 2.0, DO v2 API

The release of Ansible 2.0 is imminent, and it has support for using the DO v2 API to create droplets. However, the current official documentation is unclear and provides no working examples: http://docs.ansible.com/digital_ocean_module.html There are also no clear, up-to-date examples online, not in Ansible-galaxy, nor in the first 20-30 Google results.

We've tried to get something working ourselves, and have no luck so far. It would be very helpful to everyone, including DO itself, if a clear walkthru/tutorial was written, that uses Ansible 2.0 and the v2 API, to create/manage new droplets, and also create/update Ansible dynamic inventory/hosts files.

  • Anonymous
  • Sep 11 2018
  • Shipped
  • Sep 11, 2018

    Admin Response

    Hi, We recently published a tutorial covering how to use Ansible 2.0's DigitalOcean module to provision Droplets. It walks you through an example step by step. Check it out here: https://www.digitalocean.com/community/tutorials/how-to-use-the-digitalocean-api-v2-with-ansible-2-0-on-ubuntu-14-04 Let us know how it goes in the article's comment section. Thanks!