mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Fix Ansible documentation in part of example formatting. Part 1 (#332)
* Fix Ansible documentation in part of example formatting * Fix
This commit is contained in:
parent
983d937b7b
commit
328319b926
70 changed files with 762 additions and 705 deletions
|
@ -28,17 +28,20 @@ requirements:
|
|||
|
||||
|
||||
EXAMPLES = '''
|
||||
- digital_ocean_sshkey_info:
|
||||
- name: Gather information about DigitalOcean SSH keys
|
||||
digital_ocean_sshkey_info:
|
||||
oauth_token: "{{ my_do_key }}"
|
||||
register: ssh_keys
|
||||
|
||||
- set_fact:
|
||||
- name: Set facts based on the gathered information
|
||||
set_fact:
|
||||
pubkey: "{{ item.public_key }}"
|
||||
loop: "{{ ssh_keys.data|json_query(ssh_pubkey) }}"
|
||||
vars:
|
||||
ssh_pubkey: "[?name=='ansible_ctrl']"
|
||||
|
||||
- debug:
|
||||
- name: Print SSH public key
|
||||
debug:
|
||||
msg: "{{ pubkey }}"
|
||||
'''
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue