Digital Ocean + Deis modules

Hi,

I’ve started two modules for my own use.

https://gist.github.com/Xowap/15100acf2f466a1178a6

This one is a replacement for digital_ocean_domain. Besides the fact that I never really figured why there was a droplet id as argument to the DNS module, I actually needed to be able to set multiple IP to a single domain name, which apparently isn’t permitted with the current module (but once again, I did not really understand how it works). Here I ensure that all the supplied addresses have a record, and only them. Additionally, this module uses the v2 API.

https://gist.github.com/Xowap/8cade85ee662b7df7edd

This one can be used to create and configure Deis apps.

If you are interested in any of those two, I can tweak them and bring them up to your standards for inclusion into the standard modules distribution. I will also probably develop additional Deis modules in the future, especially if there’s interest for it in the community.

I would also like to add that the Digital Ocean lib that Ansible relies on (dopy) seems to be unmaintained and has some really annoying bugs pending. I would suggest not to depend on that anymore or to fork it, but that’s not really my problem as long as I can use my patched version :slight_smile:

Have a nice day,
Rémy