ansible-logrotate
ansible-logrotate copied to clipboard
Support running hourly logrotates
This role allows hourly rotates to be configured but the setup does not actually support them because the logrotate cron is only ran daily. To support the hourly logging feature, the manual notes:
hourly Log files are rotated every hour. Note that usually logrotate is
configured to be run by cron daily. You have to change this
configuration and run logrotate hourly to be able to really
rotate logs hourly.
Unlike the rejected PR https://github.com/nickhammond/ansible-logrotate/pull/7, this PR only aims to only support standard functionality provided by logrotate.