Add logrotate configuration
Change-Id: Ied65cd2cb946023549b78e603d31d98a96d13288
This commit is contained in:
parent
11fd3ad042
commit
9f7de54e15
@ -59,6 +59,12 @@
|
|||||||
- /var/lib/ara
|
- /var/lib/ara
|
||||||
- /etc/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
|
- name: Create the ARA configuration file
|
||||||
become: true
|
become: true
|
||||||
ini_file:
|
ini_file:
|
||||||
|
7
templates/logrotate.conf.j2
Normal file
7
templates/logrotate.conf.j2
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{{ ara.config.logfile | dirname }}/*.log {
|
||||||
|
rotate 14
|
||||||
|
size 10M
|
||||||
|
missingok
|
||||||
|
compress
|
||||||
|
copytruncate
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user