diff --git a/tasks/main.yml b/tasks/main.yml index b6f4541..81266b6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: diff --git a/templates/logrotate.conf.j2 b/templates/logrotate.conf.j2 new file mode 100644 index 0000000..b37175c --- /dev/null +++ b/templates/logrotate.conf.j2 @@ -0,0 +1,7 @@ +{{ ara.config.logfile | dirname }}/*.log { + rotate 14 + size 10M + missingok + compress + copytruncate +}