mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Update playbooks_loops.rst (#38440)
Missing parentheses +label: docsite_pr
This commit is contained in:
parent
1e0df01980
commit
061ecac3b5
1 changed files with 2 additions and 2 deletions
|
@ -224,12 +224,12 @@ There is also a specific lookup plugin ``inventory_hostnames`` that can be used
|
||||||
# show all the hosts in the inventory
|
# show all the hosts in the inventory
|
||||||
- debug:
|
- debug:
|
||||||
msg: "{{ item }}"
|
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
|
# show all the hosts matching the pattern, ie all but the group www
|
||||||
- debug:
|
- debug:
|
||||||
msg: "{{ item }}"
|
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`
|
More information on the patterns can be found on :doc:`intro_patterns`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue