1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

digital_ocean_sshkey doc refinement and removal of unused import (#28960)

Updated doc examples and removed os import that was unused
This commit is contained in:
ABond 2017-09-11 19:44:06 -04:00 committed by ansibot
parent 79bc49e150
commit 1ec015410d

View file

@ -59,12 +59,15 @@ requirements:
EXAMPLES = ''' EXAMPLES = '''
- name: "Create ssh key" - name: "Create ssh key"
digital_ocean_sshkey: digital_ocean_sshkey:
oauth_token: "{{ oauth_token }}"
name: "My SSH Public Key" name: "My SSH Public Key"
public_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example" ssh_pub_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQDDHr/jh2Jy4yALcK4JyWbVkPRaWmhck3IgCoeOO3z1e2dBowLh64QAM+Qb72pxekALga2oi4GvT+TlWNhzPH4V example"
state: present
register: result register: result
- name: "Delete ssh key" - name: "Delete ssh key"
digital_ocean_sshkey: digital_ocean_sshkey:
oauth_token: "{{ oauth_token }}"
state: "absent" state: "absent"
fingerprint: "3b:16:bf:e4:8b:00:8b:b8:59:8c:a9:d3:f0:19:45:fa" fingerprint: "3b:16:bf:e4:8b:00:8b:b8:59:8c:a9:d3:f0:19:45:fa"
''' '''
@ -87,7 +90,6 @@ data:
''' '''
import json import json
import os
import hashlib import hashlib
import base64 import base64