Skip to content

Commit

Permalink
Add Legacy Item to vars
Browse files Browse the repository at this point in the history
- Purge legacy log rotate items
  • Loading branch information
JKTUNING committed Jan 3, 2024
1 parent 975e420 commit 913a8d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/logrotate/tasks/logrotate-purge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
path: "/etc/logrotate.d/{{ item.name }}"
state: absent
force: true
loop: "{{ logrotate.service }}"
loop:
- "{{ logrotate.service }}"
- "{{ logrotate.legacy }}"
5 changes: 5 additions & 0 deletions vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 913a8d9

Please sign in to comment.