mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Moving samples/ out of the root into test/
Since samples/ is used for v2 testing, it fits better into the existing test/ structure.
This commit is contained in:
18
test/samples/with_subelements.yml
Normal file
18
test/samples/with_subelements.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
vars:
|
||||
users:
|
||||
- name: alice
|
||||
authorized:
|
||||
- /tmp/alice/onekey.pub
|
||||
- /tmp/alice/twokey.pub
|
||||
- name: bob
|
||||
authorized:
|
||||
- /tmp/bob/id_rsa.pub
|
||||
|
||||
tasks:
|
||||
- debug: msg="user={{ item.0.name }} key='{{ item.1 }}'"
|
||||
with_subelements:
|
||||
- users
|
||||
- authorized
|
||||
Reference in New Issue
Block a user