|
|
@ -17,7 +17,7 @@
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
---
|
|
|
|
---
|
|
|
|
module: digital_ocean_ssh
|
|
|
|
module: digital_ocean_sshkey
|
|
|
|
short_description: Create/delete an SSH key in DigitalOcean
|
|
|
|
short_description: Create/delete an SSH key in DigitalOcean
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create/delete an SSH key.
|
|
|
|
- Create/delete an SSH key.
|
|
|
@ -54,7 +54,7 @@ EXAMPLES = '''
|
|
|
|
# If a key matches this name, will return the ssh key id and changed = False
|
|
|
|
# If a key matches this name, will return the ssh key id and changed = False
|
|
|
|
# If no existing key matches this name, a new key is created, the ssh key id is returned and changed = False
|
|
|
|
# If no existing key matches this name, a new key is created, the ssh key id is returned and changed = False
|
|
|
|
|
|
|
|
|
|
|
|
- digital_ocean_ssh: >
|
|
|
|
- digital_ocean_sshkey: >
|
|
|
|
state=present
|
|
|
|
state=present
|
|
|
|
name=my_ssh_key
|
|
|
|
name=my_ssh_key
|
|
|
|
ssh_pub_key='ssh-rsa AAAA...'
|
|
|
|
ssh_pub_key='ssh-rsa AAAA...'
|