community.digitalocean.digital_ocean_sshkey_facts – DigitalOcean SSH keys facts¶
Note
This plugin is part of the community.digitalocean collection (version 1.1.1).
To install it use: ansible-galaxy collection install community.digitalocean
.
To use it in a playbook, specify: community.digitalocean.digital_ocean_sshkey_facts
.
DEPRECATED¶
- Removed in
version 2.0.0
- Why
Deprecated in favour of
_info
module.- Alternative
Use community.digitalocean.digital_ocean_sshkey_info instead.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
Parameters¶
Examples¶
- community.digitalocean.digital_ocean_sshkey_facts:
oauth_token: "{{ my_do_key }}"
- set_fact:
pubkey: "{{ item.public_key }}"
loop: "{{ ssh_keys | community.general.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 will be removed in version 2.0.0. [deprecated]
For more information see DEPRECATED.
Authors¶
Patrick Marques (@pmarques)