That was exactly what I was looking for.

Thanks!

On Thursday, March 19, 2015 at 7:11:40 PM UTC-5, Matt Martz wrote:
>
> You can achieve this with a callback plugin.
>
> You have a few options, you can get the actual command via some callback 
> that looks like:  https://gist.github.com/sivel/105347f6df18691446b0
>
> Otherwise, you can infer provided command line options by using something 
> like what I have done in a slack callback plugin that we use:
>
>
> https://github.com/sivel/ansible/blob/slack-callback/plugins/callbacks/slack.py#L142-L147
>
>
> That slack callback is in a PR available at: 
> https://github.com/ansible/ansible/pull/8955
>
> On Thu, Mar 19, 2015 at 4:22 PM, <[email protected] <javascript:>> 
> wrote:
>
>> Is there a way to get the command line used to invoke ansible from a 
>> playbook/role.
>>
>> After the playbook is completed I'd like to send a notification (Email, 
>> Hipchat, etc) to a group with the details of what was run and how it went.
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/5fad795f-5ad6-4e68-9e94-f7891fa35c01%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/5fad795f-5ad6-4e68-9e94-f7891fa35c01%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>  

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d963462b-4f0d-4a1b-bca6-329c417b6508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to