ansible-logrotate
ansible-logrotate copied to clipboard
Global Options
Create logrotate.d files and set global options.
Hey @rwese, thanks for the PR!
Defaults/globals for logrotate should actually be placed in /etc/logrotate.conf
which then includes all of the files in /etc/logrotate.d
, I don't want to mix those use cases on a user and introduce a new concept of global options.
Here's some defaults that are being set with logrotate on a fresh install of xenial for instance:
vagrant@ubuntu-xenial:~$ cat /etc/logrotate.conf | grep include -B 10
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
True, I was hesitant to override the Global Configuration.
When I get to it I will update it.