I have a scenario where I am executing my Ansible playbook with Jenkins. I 
have to save the execution output in a txt file which the ansible itself 
should generate. 

The naming convention of the log file should be like <system data and time 
>_< Jenkins build number >.json.

The log should contain the exact status of the execution. If the execution 
failed then the failure reason should go to logs and if it is successful 
then what tasks get executed successfully should go to logs.

Does anyone know how to do this?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/103baffd-8d28-46d3-ab3c-043e022628e8n%40googlegroups.com.

Reply via email to