Hello,
# show all the hosts in the inventory
- debug: msg={{ item }}
with_inventory_hostname: all
# show all the hosts matching the pattern, ie all but the group www
- debug: msg={{ item }}
with_inventory_hostname: all:!wwwBut my playbook raise the following error (with ansible 2.0.0.2, installed via pip) for the same task:
"ERROR! 'with_inventory_hostname' is not a valid attribute for a Task
I did not find any mention of "with_inventory_hostname" in the source code.
Is it an old feature not removed from the docs ? Did I miss something else ?
Thanks in advance,
Aurel