Removed deathlock and optimized run_once settings for performance

This commit is contained in:
2025-09-11 21:48:56 +02:00
parent 682ea6d7f2
commit 58cf63c040
6 changed files with 10 additions and 7 deletions

View File

@@ -23,4 +23,6 @@
system_service_tpl_exec_start_pre: '/usr/bin/python {{ PATH_SYSTEM_LOCK_SCRIPT }} {{ SYS_SERVICE_GROUP_MANIPULATION | join(" ") }} --ignore {{ SYS_SERVICE_BACKUP_DOCKER_2_LOC }} --timeout "{{ SYS_TIMEOUT_BACKUP_SERVICES }}"'
system_service_tpl_exec_start: "/bin/sh -c '{{ BKP_DOCKER_2_LOC_EXEC }}'"
system_service_tpl_on_failure: "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }} {{ SYS_SERVICE_CLEANUP_BACKUPS_FAILED }}"
system_service_tpl_exec_start_post: "/usr/bin/systemctl start {{ SYS_SERVICE_CLEANUP_BACKUPS }}"
# system_service_tpl_exec_start_post: "/usr/bin/systemctl start {{ SYS_SERVICE_CLEANUP_BACKUPS }}" # Not possible to use it because it's a deathlock. Keep this line for documentation purposes
- include_tasks: utils/run_once.yml

View File

@@ -1,6 +1,5 @@
- block:
- include_tasks: 01_core.yml
- include_tasks: utils/run_once.yml
when:
- run_once_sys_ctl_bkp_docker_2_loc is not defined