mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
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:
8
tasks/utils/run_once.yml
Normal file
8
tasks/utils/run_once.yml
Normal 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
|
Reference in New Issue
Block a user