Add a logrotate file for /var/log/mirrormanager/*.log files.
This commit is contained in:
parent
dfa70f8db0
commit
a7dce4ea1a
2 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
/var/log/mirrormanager/*.log
|
||||
{
|
||||
compress
|
||||
compresscmd /usr/bin/xz
|
||||
uncompresscmd /usr/bin/xz
|
||||
compressext .xz
|
||||
daily
|
||||
keep 30
|
||||
}
|
|
@ -93,6 +93,11 @@
|
|||
tags:
|
||||
- mirrorlist2
|
||||
|
||||
- name: setup logrotate log for mirrormanager log files
|
||||
copy: src=logrotate-mirrormanager dest=/etc/logrotate.d/mirrormanager
|
||||
tags:
|
||||
- mirrorlist2
|
||||
|
||||
# Copy the mirrorlist log file every hour to be ready to be processed
|
||||
- name: mirrorlist copy cron
|
||||
cron: name="copy-mirrorlist" minute="50" hour="*/2" user="mirrormanager"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue