I tried the following:
- [ansible-playbook command] -e "log_path=./blabla.log" which did not work - [ansible-playbook command] -e "ANSIBLE_LOG_PATH=./blabla.log" which did not work as well i tried these with a value of "log_path" in ansible config file and without it and still the same behavior. seems like ansible only takes note of what is configured in ansible.cfg I would assume that there has to be a way to override this value... On Thursday, September 10, 2015 at 3:25:30 PM UTC+3, Jean-Yves LENHOF wrote: > > Le 2015-09-10 10:47, Amir Luzon a écrit : > > hi there, > > > > is it at all possible to run a playbook and configure in the command > > like a specific location for the log file for this run? > > > > say i have 4 playbook i want to run. i want to create separation of > > log files per each playbook. i know i can edit the ansible.cfg file > > before each run but i would prefer to avoid this. > > > > any thoughts? > > Hi, > > Perhaps, you should try settings this environment variable to a > different path when launching your different playbooks : > > ANSIBLE_LOG_PATH > > Regards, > > JY > -- 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/0aef560d-86ed-4b54-9e1d-8d8cd997ac3c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
