Hi,

I have been writting some roles and playbooks before getting ansible in 
production. Now I have the most important stuff working (I hope) and I 
would like to generate a simple ansible log to keep track of what playbooks 
I apply to which hosts without deeper details.

I would like to have a log file in the ansible master machine in 
/var/logs/ansible/hosts/hostname.log with this format:

DATE | HOST | PATH_TO_APPLIED_PLAYBOOK 

Ideally I would like that the same log file is copied in the client 
machines when the playbook is executed.

I think the right approach would be to use a callback like this 
one 
https://github.com/ansible/ansible/blob/devel/plugins/callbacks/log_plays.py 
but that one is giving too much information and I don't know how to adapt 
it to print just the information I want. 

is there any published callback doing this simplified ansible logging? or 
can anyone point to the right documentation I should check be able to adapt 
the log_plays.py callback?

thanks in advance for your help
Pablo.

-- 
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/c0b81d48-b386-4f7a-a77d-970e8988a629%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to