How to use log_plays to generate a log file for playbook execution in Ansible
21:05 18 Apr 2019

I am running Playbook to install in-house software on Windows target machines. I am printing a log of "msg" during this process so that I can forward that to QA / compliance team. However, I do not know how to generate a log file with output from debug > "msg" and place it on Windows host machine. I know log_plays might be useful, but I could not find any example on how to actually use that module.

Any example code would be appreciated.

ansible ansible-2.x