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

@@ -4,16 +4,16 @@
- msmtp
- msmtp-mta
state: present
when: run_once_msmtp is not defined
when: run_once_sys_svc_msmtp is not defined
- name: configure msmtprc.conf.j2
template:
src: "msmtprc.conf.j2"
dest: "/root/.msmtprc"
mode: 600
when: run_once_msmtp is not defined
when: run_once_sys_svc_msmtp is not defined
- name: run the msmtp tasks once
set_fact:
run_once_msmtp: true
when: run_once_msmtp is not defined
run_once_sys_svc_msmtp: true
when: run_once_sys_svc_msmtp is not defined