Archives frequency deletion is now configurable.

This commit is contained in:
Andrea Dell'Amico 2024-05-08 10:46:07 +02:00
parent fbcc560820
commit 0f821d89bc
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 1 deletions

View File

@ -161,6 +161,7 @@ gitea_app_configurations:
# - { section: 'metrics', option: 'TOKEN', value: '{{ gitea_prometheus_bearer_token }}', state: 'present' }
gitea_enable_repository_archives_cron_jobs: true
gitea_delete_repo_archives_frequency: "@weekly"
gitea_rep_archives_configuration:
- { section: 'cron.archive_cleanup', option: 'ENABLED', value: 'true', state: 'present' }
- { section: 'cron.archive_cleanup', option: 'RUN_AT_START', value: 'false', state: 'present' }
@ -170,5 +171,5 @@ gitea_rep_archives_configuration:
- { section: 'cron.delete_repo_archives', option: 'ENABLED', value: 'true', state: 'present' }
- { section: 'cron.delete_repo_archives', option: 'RUN_AT_START', value: 'false', state: 'present' }
- { section: 'cron.delete_repo_archives', option: 'NOTICE_ON_SUCCESS', value: 'false', state: 'present' }
- { section: 'cron.delete_repo_archives', option: 'SCHEDULE', value: '@weekly', state: 'present' }
- { section: 'cron.delete_repo_archives', option: 'SCHEDULE', value: '{{ gitea_delete_repo_archives_frequency }}', state: 'present' }
- { section: 'cron.delete_repo_archives', option: '', value: '', state: 'present' }