This role implements the Digitalocean REST API for managing Digitalocean DNS entries.
You will need to create a Digitalocean API Key with write permission and to install the community.digitalocean collection.
You can find a list of the default variables and examples at defaults/main.yml. You will need to override 'do_oauth_token' with your API Key and 'do_dns_domains' with your domain info, following the pattern in defaults/main.yml. You can also set the variable 'debug' to true, if you want more output for a better error analysis.
- community.digitalocean
- kornkalle.ansible_digitalocean_dns
- hosts: localhost
roles:
- digitalocean
vars_files: group_vars/digitalocean/digitalocean.yml
Feel free to contribute and improve this role, you are welcome!
The setup is quite standard, tests are only run locally with molecule as I didn't check for a possibility to test Digitalocean API interactions against some sort of dev/test API.
CI / CD Improvements are very welcome, too.
GPLv3
Nils Berg
- nils.berg [at] helmholtz-berlin.de
- n.berg [at] backslashseven.de