31 lines
720 B
Plaintext
31 lines
720 B
Plaintext
|
{{ 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
|