Use logrotate for backrest logging rather than nuking immediately

Just in case something goes wrong with healthchecks
This commit is contained in:
Jake Howard
2021-06-27 10:58:01 +01:00
parent 8696f6d93f
commit 41a8fe3b4d
3 changed files with 15 additions and 2 deletions

View File

@ -51,3 +51,10 @@
user: restic
become: true
when: restic_forget
- name: backrest fail2ban config
template:
src: files/backrest-logrotate
dest: /etc/logrotate.d/backrest
mode: "0600"
become: true