From 0f821d89bcea36cb5fa483af551416d75338c79c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 8 May 2024 10:46:07 +0200 Subject: [PATCH] Archives frequency deletion is now configurable. --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3863c52..e81bd64 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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' }