Customise log-rotation.
All variables are optional, see defaults/main.yml
:
logrotate_interval
: Rotate logs at this interval (defaultweekly
)logrotate_backlog_size
: Number of historic log files to keep (default12
)logrotate_compress
: If True compress historic log files (defaultTrue
)
- hosts: localhost
roles:
- role: ome.logrotate
logrotate_backlog_size: 52