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' }