12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- {% if ansible_prolog -%}
- {% from 'templates/ansible/prolog.j2' import prolog with context %}
- {{ prolog() }}
- {% endif -%}
- /var/log/syslog
- /var/log/daemon.log
- /var/log/kern.log
- /var/log/user.log
- /var/log/lpr.log
- /var/log/cron.log
- /var/log/debug
- /var/log/messages
- {
- rotate 200
- daily
- dateext
- dateyesterday
- missingok
- notifempty
- delaycompress
- compress
- postrotate
- {% if ansible_lsb.codename == 'lenny' or ansible_lsb.codename == 'squeeze' %}
- invoke-rc.d rsyslog reload > /dev/null
- {% elif ansible_lsb.codename == 'jessie' or ansible_lsb.codename == 'stretch' %}
- invoke-rc.d rsyslog rotate > /dev/null
- {% else %}
- /usr/lib/rsyslog/rsyslog-rotate
- {% endif %}
- endscript
- }
- /var/log/auth.log
- /var/log/mail.info
- /var/log/mail.warn
- /var/log/mail.err
- /var/log/mail.log
- {
- rotate 1000
- daily
- dateext
- dateyesterday
- missingok
- notifempty
- compress
- delaycompress
- sharedscripts
- postrotate
- {% if ansible_lsb.codename == 'lenny' or ansible_lsb.codename == 'squeeze' %}
- invoke-rc.d rsyslog reload > /dev/null
- {% elif ansible_lsb.codename == 'jessie' or ansible_lsb.codename == 'stretch' %}
- invoke-rc.d rsyslog rotate > /dev/null
- {% else %}
- /usr/lib/rsyslog/rsyslog-rotate
- {% endif %}
- endscript
- }
|