diff --git a/tasks/main.yaml b/tasks/main.yaml index 0903783..ccdafa2 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -39,6 +39,15 @@ enabled: true 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 ansible.builtin.template: src: environment.env.j2