ansible.logrotate
ansible.logrotate copied to clipboard
New logrotate.d daily entries are not present in logrotate status file
After configuring daily rotation for an application log file using your module nothing was rotated.
/home/appuser/logs/webserver/.log /home/appuser/logs/misc/.log { copytruncate daily create 0644 appuser appuser dateyesterday rotate 30 missingok }
It's clear that a manual run of logrotate -f /etc/logrotate.d/my-application was required to ensure the required log rotation targets and their last rotate date was present in the logrotate status file
https://serverfault.com/questions/375004/logrotate-not-rotating-the-logs