Yes, there's a callback mechanism for this, where you can configure
callback plugins in ansible.cfg (or the environment) and intercept
arbitrary events.

This was an example:

https://github.com/ansible/ansible/blob/devel/plugins/callbacks/log_plays.py

(Though the log_plays setting in ansible.cfg basically does this now,
making this above plugin mostly optional)

This one is more entertaining:

https://github.com/ansible/ansible/blob/devel/plugins/callbacks/osx_say.py

So yes, you could definitely route this to hipchat instead of using the
notification plugin.

Should you develop a cool script for hipchat, send us a pull request and we
can ship it in the callbacks/ dir!




On Sat, Mar 15, 2014 at 6:15 PM, Michael Mahemoff <mich...@mahemoff.com>wrote:

> Is there any way to run a command after the playbook has finished running,
> so it would run once no matter how many hosts were processed? Kind of a
> callback handler or "super-notifier".
>
> I have a Hipchat message generated after deploying and I'd rather see one
> summary message than a line for each deployed host.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6370e80b-c700-4b72-8489-97876588e6ef%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/6370e80b-c700-4b72-8489-97876588e6ef%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEVJ8QPR8qf7%3DcATKCLHKHEXv0ieGAEbi_a5Yp60%3D8QRyg0nsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to