diff --git a/tasks/main.yml b/tasks/main.yml index 7c348a7..be15e44 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,6 +37,14 @@ group: 33 mode: '0774' +- name: Configure logrotate for chill + ansible.builtin.template: + dest: /etc/logrotate/logrotate.d/chill + src: logrotate/chill + owner: root + group: root + mode: '0644' + - name: Install traefik ansible.builtin.include_tasks: traefik.yml diff --git a/templates/logrotate/chill b/templates/logrotate/chill new file mode 100644 index 0000000..21a6085 --- /dev/null +++ b/templates/logrotate/chill @@ -0,0 +1,15 @@ +/var/log/chill/default-*.log { + rotate 90 + daily + compress + missingok + notifempty +} + +/var/log/apt/private-*.log { + rotate 180 + daily + compress + missingok + notifempty +} \ No newline at end of file