New in version 1.3.
Note
- name: show all the hosts matching the pattern, ie all but the group www
debug:
msg: "{{ item }}"
with_inventory_hostnames:
- all:!www
Common return values are documented here, the following are the fields unique to this lookup:
Key | Returned | Description |
---|---|---|
_hostnames
list
|
list of hostnames that matched the host pattern in inventory
|
Hint
If you notice any issues in this documentation you can edit this document to improve it.