diff --git a/tasks/backups.yml b/tasks/backups.yml index 76ed58550b1e2a7885673013bc03bec519ab9fe2..d2c3cbb1494b4e96c31fb5402e9c0ee26d49fb01 100644 --- a/tasks/backups.yml +++ b/tasks/backups.yml @@ -11,5 +11,5 @@ - name: add gitlab backup cleanup job cron: name: gitlab backup cleanup - job: 'find {{ gitlab.backup.path }}/* -mtime +{{ gitlab.backup.keep_days }} -type f -exec rm {} \;' + job: 'find {{ gitlab.backup.path }}/* -mtime +{{ gitlab.backup.keep_days - 1 }} -type f -exec rm {} \;' special_time: daily