Playbooks can now do includes / useful for class-like features!

Want to emulate “class assignment” (like in Puppet) in ansible? You now easily can, with include statements:

https://github.com/mpdehaan/ansible/blob/master/examples/playbook.yml

In each task section you can import one or more lists of tasks.

You can also do the same to reuse handlers, which only run when change events call them out by name.

Should be pretty useful as both a base of a config management system as well as a deployment system, which is, of course, the whole goal of the project.

Please bang on this with a big hammer and let me know what you think.

–Michael