Add logrotate configuration

Change-Id: Ied65cd2cb946023549b78e603d31d98a96d13288
This commit is contained in:
David Moreau Simard 2018-04-25 18:34:43 -04:00
parent 11fd3ad042
commit 9f7de54e15
No known key found for this signature in database
GPG Key ID: 33A07694CBB71ECC
2 changed files with 13 additions and 0 deletions

View File

@ -59,6 +59,12 @@
- /var/lib/ara
- /etc/ara
- name: Setup ARA logrotate
become: true
template:
src: logrotate.conf.j2
dest: /etc/logrotate.d/ara
- name: Create the ARA configuration file
become: true
ini_file:

View File

@ -0,0 +1,7 @@
{{ ara.config.logfile | dirname }}/*.log {
rotate 14
size 10M
missingok
compress
copytruncate
}