We are using ansible in our production and our log_plays callback plugin 
just broke after upgrading from 1.9.4 to 2.0.0.1 .
  
I need to put my custom logging using log_plays.py ( say store the results 
in a sqllitedb for later analysis ) . The same was working fine till 
ansible 1.9.4 . I am using *ansible 2.0.0 on ubuntu 14.04 64 bit . *

I used this log 
file 
https://github.com/ansible/ansible/blob/stable-2.0.0.1/lib/ansibale/plugins/callback/log_plays.py
 
. Any function overrided under the `class CallbackModule(CallbackBase):` are 
not reflecting while the code outside class is working .  

Example - 

def runner_on_ok(self, host, res):
        self.log(host, 'ok-it-worked', res)


I wanted to use the *playbook_on_stats(self, stats) *function . How can I 
> use it  ? I can see the changes from the 1.9.4 log_plays.py file 
> https://github.com/ansible/ansible/blob/stable-1.9/plugins/callbacks/log_plays.py
>  
>  like now  not all functions are included but not getting why the functions 
> are not overriding . 



-- 
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/c968f283-d8ae-4923-8258-40422e09f99e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to