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

8
tasks/utils/run_once.yml Normal file
View File

@@ -0,0 +1,8 @@
---
# This is necessary to flush the handlers before the when is set, because otherwise the when will be attached to the handlers
- meta: flush_handlers
- name: Set “run-once” fact for role {{ role_name }}
set_fact:
"{{ 'run_once_' + (role_name | lower | replace('-', '_')) }}": true