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
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
...@@ -98,8 +98,8 @@ ...@@ -98,8 +98,8 @@
- syslog - syslog
- name: ensure our logrotate.conf is present - name: ensure our logrotate.conf is present
copy: template:
src: logrotate.conf src: logrotate.conf.j2
dest: /etc/logrotate.conf dest: /etc/logrotate.conf
owner: root owner: root
group: root group: root
......
...@@ -15,6 +15,7 @@ delaycompress ...@@ -15,6 +15,7 @@ delaycompress
# packages drop log rotation information into this directory # packages drop log rotation information into this directory
include /etc/logrotate.d include /etc/logrotate.d
{% if ansible_distribution_major_version|int < 10 %}
# no packages own wtmp, or btmp -- we'll rotate them here # no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp { /var/log/wtmp {
missingok missingok
...@@ -29,5 +30,6 @@ include /etc/logrotate.d ...@@ -29,5 +30,6 @@ include /etc/logrotate.d
create 0660 root utmp create 0660 root utmp
rotate 1 rotate 1
} }
{% endif %}
# system-specific logs may be configured here # 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