How to log anisble execution output to a single log file ?
Posted on: Jan 04, 2019by: Surya M
I am trying to store the tasks execution results into a single file . In shell scripting, I could just use >>logfile.log etc to send the commands execution and keep appending the file, but I did not see anything as such in ansible..
Any ideas ?
If you simply want to capture your ansible output then shell redirection will work. Use the -v option if you want verbose logging and make sure to redirect stderr as well. Something like this would work.