[mailman3] Add logrotate capabilities

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-06-28 11:02:10 +02:00
parent 7b022d51bb
commit c69ef120c3
2 changed files with 25 additions and 0 deletions

View file

@ -435,6 +435,18 @@
- systemd
- hyperkitty
#
# Logrotate
#
- name: Setup logrotate
ansible.builtin.template:
src: "mailman.logrotate.j2"
dest: /etc/logrotate.d/mailman
tags:
- logrotate
- config
#
# Scripts
#

View file

@ -0,0 +1,13 @@
{{ mailman_log_directory }}/*log {
daily
rotate 7
missingok
ifempty
compress
compresscmd /usr/bin/xz
uncompresscmd /usr/bin/xz
compressext .xz
dateext
sharedscripts
copytruncate
}