[ansible-project] Enable playbook logging via callback plugin

2017-12-19 Thread ansiblekrazy
Hi, I want to log playbook execution on per host basis. Have tried log_plays, it is helping but the logs output is not so good to read. Is it possible to get the output in human readable format or some other suggestions -- You received this message because you are subscribed to the Google

[ansible-project] Re: Help in developing custom plugin

2017-12-29 Thread ansiblekrazy
I cant find any documentation which states how to test the plugin and everything On Saturday, December 30, 2017 at 1:21:37 AM UTC+5:30, Ansible Krazy wrote: > > Hi All, > > Can someone please guide me to develop/enhance some plugin. Want to know > how to add debug statement in current plugin

[ansible-project] callback plugin log_plays double output in logs

2018-01-06 Thread ansiblekrazy
Ansible log_plays plugin is logging double output in logs Jan 06 2018 10:20:29 - OK - omitted Jan 06 2018 10:20:29 - OK - omitted Jan 06 2018 10:20:29 - OK - {"msg": "hello", "changed": false, "_ansible_verbose_always": true, "_ansible_no_log": false} Jan 06 2018 10:20:29 - OK -

[ansible-project] Re: callback plugin log_plays double output in logs

2018-01-07 Thread ansiblekrazy
I'm using ansible verison ansible --version ansible 2.5.0 log_plays : https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/log_plays.py On Sunday, January 7, 2018 at 10:02:49 AM UTC+5:30, ansibl...@gmail.com wrote: > > Ansible log_plays plugin is logging double output in

[ansible-project] Re: callback plugin log_plays double output in logs

2018-01-09 Thread ansiblekrazy
So I defined it under /usr/share/ansible/plugins/callback ansible one. Tested on ansible 2.4.2.0, same result: Jan 10 2018 02:25:17 - OK - omitted Jan 10 2018 02:25:17 - OK - omitted Jan 10 2018 02:25:17 - OK - {"msg": "hello", "changed": false, "_ansible_verbose_always": true,

[ansible-project] Run multiple play books according to role

2018-02-21 Thread ansiblekrazy
I want to run playbooks according to role host file will contain all host:groups if role a and group a: run playbook a if role b and group b run playbook b etc Or if we give role in runtime, it will run the playbook corresponding to it -- You received this message because you are