[mailman3] Add logrotate capabilities
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
7b022d51bb
commit
c69ef120c3
2 changed files with 25 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
13
roles/mailman3/templates/mailman.logrotate.j2
Normal file
13
roles/mailman3/templates/mailman.logrotate.j2
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue