Hello, is it possible to add a date or date/time extension to ansible.log files created?
In ansible.cfg, I would like the log files to be created as ansible.log.20160906
I would think based on the other config options I see in ansible.cfg I could make use of the date/time variables, specify the file like so:
log_path=/app/ansible/logs/ansible.log-%Y%m%d
However, the log gets created as ansible.log-%Y%m%d
Is there a way to do this?
Thanks,
John
You could write a wrapper script that sets $ANSIBLE_LOG_PATH, and then
runs Ansible.
(I agree that this seems like a nice feature to have in general though.)
-Josh (jbs@care.com)
(apologies for the automatic corporate disclaimer that follows)
This email is intended for the person(s) to whom it is addressed and may contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized use, distribution, copying, or disclosure by any person other than the addressee(s) is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and delete the message and any attachments from your system.