Normalized run_once_, made openresty handlers without when aviable and forced flush in run_once when blocks to avoid handlers with when conditions

This commit is contained in:
2025-08-08 15:32:26 +02:00
parent e675aa5886
commit c7b25ed093
58 changed files with 410 additions and 293 deletions

View File

@@ -2,9 +2,4 @@
systemd:
name: sys-alm-compose.infinito.service
daemon_reload: yes
when: run_once_systemd_notifier_service is not defined
- name: run the systemd_notifier_service tasks once
set_fact:
run_once_systemd_notifier_service: true
when: run_once_systemd_notifier_service is not defined
when: run_once_sys_alm_compose is not defined

View File

@@ -4,9 +4,9 @@
src: sys-alm-compose@.service.j2
dest: "/etc/systemd/system/sys-alm-compose.infinito@.service"
notify: "restart sys-alm-compose service"
when: run_once_systemd_notifier_service is not defined
when: run_once_sys_alm_compose is not defined
- name: run the systemd_notifier_service tasks once
set_fact:
run_once_systemd_notifier_service: true
when: run_once_systemd_notifier_service is not defined
run_once_sys_alm_compose: true
when: run_once_sys_alm_compose is not defined