ansible-logrotate-plusplus/templates/etc/logrotate.conf.j2
Serge van Ginderachter b0e5245e4e
Import github.com/arillso/ansible.logrotate
at version 1.5.2 (commit 038649f
2020-09-09 16:17:43 +02:00

31 lines
720 B
Django/Jinja

{{ ansible_managed | comment }}
# see "man logrotate" for details
{% if logrotate_options | length > 0 %}
{% for option in logrotate_options %}
{{ option }}
{% endfor %}
{% else %}
{% for option in logrotate_distribution_options | default([]) %}
{{ option }}
{% endfor %}
{% endif %}
# packages drop log rotation information into this directory
include {{ logrotate_include_dir }}
# no packages own wtmp, or btmp -- we'll rotate them here
{{ logrotate_wtmp.logs | join(" ") }} {
{% for option in logrotate_wtmp.options %}
{{ option }}
{% endfor %}
}
{{ logrotate_btmp.logs | join(" ") }} {
{% for option in logrotate_btmp.options %}
{{ option }}
{% endfor %}
}
# system-specific logs may be configured here