In ansible.cfg
, I use the log_path
variable to define where to save Ansible logs.
A log file is generated and filled automatically but log rotation seems ineffective.
I need information about Ansible logs rotation.
- When does log rotates - daily, according to file size, … ?
- Is it a file rotation or a file content rotation?
After defining log_path in ansible.cfg, I ran Ansible several times for several weeks. The logs are saved but there’s no rotation.
## ansible.cfg
log_path = /my/ansible/log.path
I would have two files:
/my/ansible/log.path
contains latest logs/my/ansible/log.path.0
for example contains oldest logs
but I only have all logs saved in /my/ansible/log.path
.