Installs and configures logrotate
ansible-galaxy install arillso.logrotate
None
Variable | Default | Comments (type) |
---|---|---|
logrotate_options | [ 'weekly', 'su root syslog', 'rotate 4', 'create' ] | List of default options |
logrotate_wtmp | { logs: ['/var/log/wtmp'], options: ['missingok', 'monthly', 'create 0664 root utmp', 'rotate 1'] } | Logrotate options for wtmp |
logrotate_btmp | { logs: ['/var/log/btmp'], options: ['missingok', 'monthly', 'create 0660 root utmp', 'rotate 1'] } | Logrotate options for btmp |
logrotate_applications | [] | Logrotate options for other applications |
None
- hosts: all
roles:
- arillso.logrotate
logrotate_applications:
- name: zabbix-agent
definitions:
- logs:
- '/var/log/zabbix/zabbix_agentd.log'
options:
- weekly
- rotate 13
- compress
- delaycompress
- missingok
- notifempty
- create 0640 zabbix zabbix
- name: nginx
definitions:
- logs:
- '/var/log/nginx/nginx.log'
options:
- weekly
- rotate 13
- compress
- delaycompress
- missingok
- notifempty
- create 0640 www-data adm
- add Red Hat Support
- update loop_vars
- add defaults vars
- new role tests
- rename role
- add become support
- inital role
This project is under the MIT License. See the LICENSE file for the full license text.
(c) 2019, Simon Bärlocher