mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix subelements example correctly (#46482)
This commit is contained in:
committed by
Alicia Cozine
parent
ae363da5f5
commit
92037679c4
@@ -302,43 +302,45 @@ Produces a product of an object, and subelement values of that object, similar t
|
||||
Which turns::
|
||||
|
||||
users:
|
||||
- name: alice
|
||||
authorized:
|
||||
- /tmp/alice/onekey.pub
|
||||
- /tmp/alice/twokey.pub
|
||||
groups:
|
||||
- wheel
|
||||
- docker
|
||||
- name: bob
|
||||
authorized:
|
||||
- /tmp/bob/id_rsa.pub
|
||||
groups:
|
||||
- docker
|
||||
- name: alice
|
||||
authorized:
|
||||
- /tmp/alice/onekey.pub
|
||||
- /tmp/alice/twokey.pub
|
||||
groups:
|
||||
- wheel
|
||||
- docker
|
||||
- name: bob
|
||||
authorized:
|
||||
- /tmp/bob/id_rsa.pub
|
||||
groups:
|
||||
- docker
|
||||
|
||||
Into::
|
||||
|
||||
-
|
||||
- name: alice
|
||||
groups:
|
||||
- wheel
|
||||
- docker
|
||||
- wheel
|
||||
- docker
|
||||
authorized:
|
||||
- /tmp/alice/onekey.pub
|
||||
- /tmp/alice/onekey.pub
|
||||
- /tmp/alice/twokey.pub
|
||||
- wheel
|
||||
-
|
||||
- name: alice
|
||||
groups:
|
||||
- wheel
|
||||
- docker
|
||||
- wheel
|
||||
- docker
|
||||
authorized:
|
||||
- /tmp/alice/twokey.pub
|
||||
- /tmp/alice/onekey.pub
|
||||
- /tmp/alice/twokey.pub
|
||||
- docker
|
||||
-
|
||||
- name: bob
|
||||
authorized:
|
||||
- /tmp/bob/id_rsa.pub
|
||||
- /tmp/bob/id_rsa.pub
|
||||
groups:
|
||||
- docker
|
||||
- docker
|
||||
- docker
|
||||
|
||||
An example of using this filter with ``loop``::
|
||||
|
||||
Reference in New Issue
Block a user