Add logrotate configuration
Change-Id: Ied65cd2cb946023549b78e603d31d98a96d13288
This commit is contained in:
parent
11fd3ad042
commit
9f7de54e15
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{{ ara.config.logfile | dirname }}/*.log {
|
||||
rotate 14
|
||||
size 10M
|
||||
missingok
|
||||
compress
|
||||
copytruncate
|
||||
}
|
Loading…
Reference in New Issue