I am trying to store the ansible running log to a file. And every playbook will have separate ansible running log file.
I know I can use ‘export ANSIBLE_LOG_PATH=~/share/logging/peter.log’ this variable to do this. But is there any other way?
I prefer a command line parameter or a module. I would like to do some development work but I need some directive guidance.
I cannot use plugin because I cannot affect other ansible users, also I have no right to change the ansible.cfg file. Too much limitataion from the boss, right?
Thanks for the help.
The customer will execute the command so I should work in the playbook.
And what I need to store is running log like below, not the stand output. Do you have any other suggestions? Thanks.