Lösche Backups nach sieben Tagen

This commit is contained in:
Marius Alwan Meyer 2023-07-06 11:37:56 +02:00
parent cf59550120
commit a20c7b188d

View File

@ -39,6 +39,15 @@
enabled: true enabled: true
state: started state: started
- name: Ensure old backups will get deleted
ansible.builtin.cron:
name: gitea backup cleanup
minute: "0"
hour: "8"
user: root
job: "find /var/backups/gitea-* -mtime +7 -type f -delete"
cron_file: gitea-backup-cleanup
- name: Check if environment.env will get changed - name: Check if environment.env will get changed
ansible.builtin.template: ansible.builtin.template:
src: environment.env.j2 src: environment.env.j2