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
parent 983d937b7b
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

@ -65,31 +65,31 @@ author:
'''
EXAMPLES = '''
# Gather facts about all images
- one_image_info:
- name: Gather facts about all images
one_image_info:
register: result
# Print all images facts
- debug:
- name: Print all images facts
debug:
msg: result
# Gather facts about an image using ID
- one_image_info:
- name: Gather facts about an image using ID
one_image_info:
ids:
- 123
# Gather facts about an image using the name
- one_image_info:
- name: Gather facts about an image using the name
one_image_info:
name: 'foo-image'
register: foo_image
# Gather facts about all IMAGEs whose name matches regex 'app-image-.*'
- one_image_info:
- name: Gather facts about all IMAGEs whose name matches regex 'app-image-.*'
one_image_info:
name: '~app-image-.*'
register: app_images
# Gather facts about all IMAGEs whose name matches regex 'foo-image-.*' ignoring cases
- one_image_info:
- name: Gather facts about all IMAGEs whose name matches regex 'foo-image-.*' ignoring cases
one_image_info:
name: '~*foo-image-.*'
register: foo_images
'''