Skip to content
Snippets Groups Projects
Commit aed708e8 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Template logrotate.conf for ≥ Buster

parent 1e8f9295
No related branches found
No related tags found
1 merge request!2Template logrotate.conf for ≥ Buster
Pipeline #1589 passed
......@@ -98,8 +98,8 @@
- syslog
- name: ensure our logrotate.conf is present
copy:
src: logrotate.conf
template:
src: logrotate.conf.j2
dest: /etc/logrotate.conf
owner: root
group: root
......
......@@ -15,6 +15,7 @@ delaycompress
# packages drop log rotation information into this directory
include /etc/logrotate.d
{% if ansible_distribution_major_version|int < 10 %}
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
......@@ -29,5 +30,6 @@ include /etc/logrotate.d
create 0660 root utmp
rotate 1
}
{% endif %}
# system-specific logs may be configured here
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment