> Thanks for these pointers JP. The mail plugin looks interesting, and is
> probably what I need. How do I call it from a playbook though?
You don't -- that's the magic. :-)
You configure Ansible to use that callback plugin by dropping into the
directory you configure for callback plugins [1]. From that point on,
Ansible always invokes it automatically.
Forgive me for linking to my own blurb [2], but that's what I wrote at
the time. (I hope it's still more or less current.)
Good luck,
-JP
[1]
http://docs.ansible.com/developing_plugins.html
[2]
http://jpmens.net/2012/09/11/watching-ansible-at-work-callbacks/