add logrotate for container mirrorlist logs

This commit is contained in:
Kevin Fenzi 2017-02-09 22:40:17 +00:00
parent 2b8337972d
commit e192879482
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,10 @@
/var/log/mirrormanager/*.log
{
compress
compresscmd /usr/bin/xz
uncompresscmd /usr/bin/xz
compressext .xz
daily
rotate 30
missingok
}

View file

@ -36,6 +36,11 @@
tags:
- mirrorlist_proxy
- name: setup logrotate log for mirrormanager log files
copy: src=logrotate-mirrormanager dest=/etc/logrotate.d/mirrormanager
tags:
- mirrorlist_proxy
- name: Install docker
package: name={{item}} state=present
with_items: