Package module returns error 'package' is not a valid attribute for a Play

All,

This made me unreasonably excited.

http://docs.ansible.com/ansible/package_module.html

And end to having to define multiple statements for each ‘linux distro’. Neat!

‘Installed’ Ansible 2 locally …

$ ansible --version
ansible 2.0.0 (devel 591c81e95f) last updated 2015/11/20 10:08:09 (GMT -500)
lib/ansible/modules/core: (detached HEAD 88e0bfd75d) last updated 2015/11/20 10:08:13 (GMT -500)
lib/ansible/modules/extras: (detached HEAD 7da1f8d4ca) last updated 2015/11/20 10:08:16 (GMT -500)
config file =
configured module search path = Default w/o overrides

A quickie playbook …

That file you reference is a role task file, not a playbook. As such you cannot run it with ansible-playbook.

You will have to create a proper playbook to execute that role.

D’oh.