with_inventory_hostname error

Hello,

The documentation mentions “with_inventory_hostname” (http://docs.ansible.com/ansible/playbooks_loops.html#looping-over-the-inventory) as an attribute for a task :

# 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:!www

But 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

missing an 's', with_inventory_hostnames

made fix to docs, which were wrong.

Thank you very much for this and for everything !