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:
Andrew Klychkov 2020-05-15 13:13:45 +03:00 committed by GitHub
commit 328319b926
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 762 additions and 705 deletions

View file

@ -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
'''