xoxys.logrotate/defaults/main.yml

59 lines
1.2 KiB
YAML
Raw Normal View History

2020-01-28 21:39:05 +00:00
---
logrotate_package: logrotate
logrotate_include_dir: /etc/logrotate.d
logrotate_options:
- weekly
- rotate 4
- create
- dateext
logrotate_config:
- name: syslog
definitions:
- logs:
- /var/log/cron
- /var/log/maillog
- /var/log/messages
- /var/log/secure
- /var/log/spooler
options:
- missingok
- sharedscripts
postrotate:
- /usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true
- name: chrony
definitions:
- logs:
- /var/log/chrony/*.log
options:
- missingok
- nocreate
- sharedscripts
postrotate:
- /usr/bin/chronyc cyclelogs > /dev/null 2>&1 || true
- name: wtmp
definitions:
- logs:
- /var/log/wtmp
options:
- missingok
- monthly
- create 0664 root utmp
- minsize 1M
- rotate 1
- name: btmp
definitions:
2020-01-28 21:41:26 +00:00
- logs:
- /var/log/btmp
options:
- missingok
- monthly
- create 0600 root utmp
- rotate 1
2020-01-28 21:39:05 +00:00
logrotate_app_config: []
logrotate_app_config_extra: []