Re: [ansible-project] Play recap or current status programmatically available in task?

2014-07-25 Thread Daniel Schroeder
Thanks Michael, I already worked with plugins but have totally overlooked the callback plugins. This rises followup question on my end but I will start a separate topic on that. Thanks, Daniel Am Donnerstag, 24. Juli 2014 13:07:48 UTC+2 schrieb Michael DeHaan: The answer to accessing events

[ansible-project] Play recap or current status programmatically available in task?

2014-07-24 Thread Daniel Schroeder
Hello, I'd like to send a summary of the run (basically the play recap which is shown after playbook execution on the command line) to a hipchat room. PLAY RECAP host1: ok=8changed=0unreachable=0failed=0

Re: [ansible-project] Play recap or current status programmatically available in task?

2014-07-24 Thread Michael DeHaan
The answer to accessing events programmatically is a callback plugin, and Matt Martz from Rackspace contributed one exactly for hipchat. https://github.com/ansible/ansible/blob/devel/plugins/callbacks/hipchat.py See the docs about callback plugins, but basically you just need to have this stored