mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix subelements lookup docs example (#44782)
* Fix subelements lookup docs example * Fix grammar
This commit is contained in:
@@ -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 = """
|
||||
|
||||
Reference in New Issue
Block a user