1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update playbooks_loops.rst

This commit is contained in:
Chiyu Zhong 2017-07-03 18:30:51 +08:00 committed by Brian Coca
parent 0ee46cb0df
commit 505dd9fe44

View file

@ -259,7 +259,7 @@ Given the mysql hosts and privs subkey lists, you can also iterate over a list i
priv: "{{ item.0.mysql.privs | join('/') }}"
with_subelements:
- "{{ users }}"
- "{{ mysql.hosts }}"
- mysql.hosts
Subelements walks a list of hashes (aka dictionaries) and then traverses a list with a given (nested sub-)key inside of those
records.