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('/') }}" priv: "{{ item.0.mysql.privs | join('/') }}"
with_subelements: with_subelements:
- "{{ users }}" - "{{ 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 Subelements walks a list of hashes (aka dictionaries) and then traverses a list with a given (nested sub-)key inside of those
records. records.