Update playbooks_loops.rst (#50437)

Error in the example for exclusion pattern

+label: docsite_pr
This commit is contained in:
fretis 2019-01-03 15:36:33 +01:00 committed by Sandra McCann
parent 362e603eb3
commit 0a56a22098

View file

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