action for getting Digital Ocean keys

33 views
Skip to first unread message

Paul Mackay

unread,
Jan 5, 2015, 7:50:19 AM1/5/15
to ansible...@googlegroups.com
Is there any way to get a list of keys with IDs from a Digital Ocean account? If not, might that be a useful task? I have a scenario where I have keys in my account and would like to add them to a droplet I'm creating using ansible. But the only way I could find the IDs of the keys was to construct a separate HTTP call to the DO API and check the result (the DO interface doesnt show the IDs at all). But that becomes hard to automate if the keys change.

Akos Vandra

unread,
Jan 7, 2015, 2:18:11 PM1/7/15
to ansible-project
Hi!

I have build a digitalocean_facts module, which I intend to release once it's cleaned up a bit. Can send it to you in its current form, if you're interested

Akos

On 5 January 2015 at 13:50, Paul Mackay <paulj...@gmail.com> wrote:
Is there any way to get a list of keys with IDs from a Digital Ocean account? If not, might that be a useful task? I have a scenario where I have keys in my account and would like to add them to a droplet I'm creating using ansible. But the only way I could find the IDs of the keys was to construct a separate HTTP call to the DO API and check the result (the DO interface doesnt show the IDs at all). But that becomes hard to automate if the keys change.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cb6f04b0-46cb-496f-a206-a55777f6fa99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Mackay

unread,
Jan 8, 2015, 1:22:32 PM1/8/15
to ansible...@googlegroups.com
Hi Akos,

I'd be interested to take a look, is it on Github?

thanks

paul

Paul Mackay

unread,
Jan 12, 2015, 12:07:33 PM1/12/15
to ansible...@googlegroups.com
Hi Akos,

Also does your module help to retrieve the image ID list? I've just noticed they seem to change every so often.


thanks

paul

On Wednesday, 7 January 2015 19:18:11 UTC, Akos Vandra wrote:
Reply all
Reply to author
Forward
0 new messages