Update playbooks_loops.rst (#38440)

Missing parentheses
+label: docsite_pr
This commit is contained in:
alekseyp 2018-04-09 06:49:34 -04:00 committed by Martin Krizek
parent 1e0df01980
commit 061ecac3b5

View file

@ -224,12 +224,12 @@ There is also a specific lookup plugin ``inventory_hostnames`` that can be used
# show all the hosts in the inventory
- debug:
msg: "{{ item }}"
loop: "{{lookup('inventory_hostnames', 'all'}}"
loop: "{{ lookup('inventory_hostnames', 'all') }}"
# show all the hosts matching the pattern, ie all but the group www
- debug:
msg: "{{ item }}"
loop: "{{lookup('inventory_hostnames', 'all!www'}}"
loop: "{{ lookup('inventory_hostnames', 'all!www') }}"
More information on the patterns can be found on :doc:`intro_patterns`