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

corrected with_dict example

fixes #17636
This commit is contained in:
Brian Coca 2017-03-16 10:13:22 -04:00
parent 67dc8c146e
commit 001be55ef0

View file

@ -112,8 +112,7 @@ And you want to print every user's name and phone number. You can loop through
- name: Print phone records - name: Print phone records
debug: debug:
msg: "User {{ item.key }} is {{ item.value.name }} ({{ item.value.telephone }})" msg: "User {{ item.key }} is {{ item.value.name }} ({{ item.value.telephone }})"
with_dict: with_dict: "{{ users }}"
- "{{ users }}"
.. _looping_over_fileglobs: .. _looping_over_fileglobs: