mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
Add module support to yamllint sanity test. (#34964)
* Add module support to yamllint sanity test. * Fix duplicate keys in module RETURN docs. * Fix syntax in return_common docs fragment. * Fix duplicate keys in module EXAMPLES docs.
This commit is contained in:
parent
240024ea4a
commit
227ff61f9d
53 changed files with 533 additions and 344 deletions
|
@ -35,17 +35,17 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
# Return facts about all installed images.
|
||||
smartos_image_facts:
|
||||
- smartos_image_facts:
|
||||
|
||||
# Return all private active Linux images.
|
||||
smartos_image_facts: filters="os=linux state=active public=false"
|
||||
- smartos_image_facts: filters="os=linux state=active public=false"
|
||||
|
||||
# Show, how many clones does every image have.
|
||||
smartos_image_facts:
|
||||
- smartos_image_facts:
|
||||
|
||||
debug: msg="{{ smartos_images[item]['name'] }}-{{smartos_images[item]['version'] }}
|
||||
- debug: msg="{{ smartos_images[item]['name'] }}-{{smartos_images[item]['version'] }}
|
||||
has {{ smartos_images[item]['clones'] }} VM(s)"
|
||||
with_items: "{{ smartos_images.keys() }}"
|
||||
with_items: "{{ smartos_images.keys() }}"
|
||||
'''
|
||||
|
||||
RETURN = '''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue