# action for getting Digital Ocean keys

**URL:** <https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184>\
**Category:** Ansible Project\
**Created:** [January 5, 2015, 12:50pm UTC](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184 "2015-01-05T12:50:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Mackay](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Paul\_Mackay](https://forum.ansible.com/u/Paul_Mackay)\
**Post date:** [January 5, 2015, 12:50pm UTC](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184/1 "2015-01-05T12:50:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Akos\_Vandra](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Akos\_Vandra](https://forum.ansible.com/u/Akos_Vandra)\
**Post date:** [January 7, 2015, 7:18pm UTC](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184/2 "2015-01-07T19:18:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Paul\_Mackay](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Paul\_Mackay](https://forum.ansible.com/u/Paul_Mackay)\
**Post date:** [January 8, 2015, 6:22pm UTC](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184/3 "2015-01-08T18:22:32Z")

</div>

Hi Akos,

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

thanks

paul

---

<div class="post-metadata">

**Author:** ![Paul\_Mackay](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@Paul\_Mackay](https://forum.ansible.com/u/Paul_Mackay)\
**Post date:** [January 12, 2015, 5:07pm UTC](https://forum.ansible.com/t/action-for-getting-digital-ocean-keys/17184/4 "2015-01-12T17:07:33Z")

</div>

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
