digital_ocean_sshkey_info – Gather information about DigitalOcean SSH keys¶
New in version 2.9.
Synopsis¶
- This module can be used to gather information about DigitalOcean SSH keys.
- This module replaces the
digital_ocean_sshkey_facts
module.
Requirements¶
The below requirements are needed on the host that executes this module.
- python >= 2.6
Parameters¶
Examples¶
- digital_ocean_sshkey_info:
oauth_token: "{{ my_do_key }}"
register: ssh_keys
- set_fact:
pubkey: "{{ item.public_key }}"
loop: "{{ ssh_keys.data|json_query(ssh_pubkey) }}"
vars:
ssh_pubkey: "[?name=='ansible_ctrl']"
- debug:
msg: "{{ pubkey }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Patrick Marques (@pmarques)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.