Fix subelements lookup docs example (#44782)
* Fix subelements lookup docs example * Fix grammar
This commit is contained in:
parent
70adbb87d9
commit
113bdec2ed
1 changed files with 2 additions and 2 deletions
|
@ -72,9 +72,9 @@ EXAMPLES = """
|
|||
- "{{ users }}"
|
||||
- mysql.hosts
|
||||
|
||||
- name: list groups for user that have them, dont error if they don't
|
||||
- name: list groups for users that have them, don't error if groups key is missing
|
||||
debug: var=item
|
||||
with_list: "{{lookup('subelements', users, 'groups', 'skip_missing=True')}}"
|
||||
loop: "{{lookup('subelements', users, 'groups', {'skip_missing': True})}}"
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
|
Loading…
Reference in a new issue