mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -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
|
@ -74,40 +74,40 @@ author:
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# Fetch the IMAGE by id
|
||||
- one_image:
|
||||
- name: Fetch the IMAGE by id
|
||||
one_image:
|
||||
id: 45
|
||||
register: result
|
||||
|
||||
# Print the IMAGE properties
|
||||
- debug:
|
||||
- name: Print the IMAGE properties
|
||||
debug:
|
||||
msg: result
|
||||
|
||||
# Rename existing IMAGE
|
||||
- one_image:
|
||||
- name: Rename existing IMAGE
|
||||
one_image:
|
||||
id: 34
|
||||
state: renamed
|
||||
new_name: bar-image
|
||||
|
||||
# Disable the IMAGE by id
|
||||
- one_image:
|
||||
- name: Disable the IMAGE by id
|
||||
one_image:
|
||||
id: 37
|
||||
enabled: no
|
||||
|
||||
# Enable the IMAGE by name
|
||||
- one_image:
|
||||
- name: Enable the IMAGE by name
|
||||
one_image:
|
||||
name: bar-image
|
||||
enabled: yes
|
||||
|
||||
# Clone the IMAGE by name
|
||||
- one_image:
|
||||
- name: Clone the IMAGE by name
|
||||
one_image:
|
||||
name: bar-image
|
||||
state: cloned
|
||||
new_name: bar-image-clone
|
||||
register: result
|
||||
|
||||
# Delete the IMAGE by id
|
||||
- one_image:
|
||||
- name: Delete the IMAGE by id
|
||||
one_image:
|
||||
id: '{{ result.id }}'
|
||||
state: absent
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue