diff --git a/roles/logrotate/tasks/logrotate-purge.yml b/roles/logrotate/tasks/logrotate-purge.yml index fa2c2a5..242c432 100644 --- a/roles/logrotate/tasks/logrotate-purge.yml +++ b/roles/logrotate/tasks/logrotate-purge.yml @@ -4,4 +4,6 @@ path: "/etc/logrotate.d/{{ item.name }}" state: absent force: true - loop: "{{ logrotate.service }}" + loop: + - "{{ logrotate.service }}" + - "{{ logrotate.legacy }}" diff --git a/vars.yml b/vars.yml index 431c205..7699146 100644 --- a/vars.yml +++ b/vars.yml @@ -118,6 +118,11 @@ logrotate: path: "/var/log/mongodb/*.log" rotate: "daily" number: "14" + legacy: + - name: "docker_debug_log" + path: "/var/lib/docker/containers/*/*.log" + rotate: "daily" + number: "7" ufw: allow_out: