mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-05 18:01:40 +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:
@@ -1,16 +1,16 @@
|
||||
- name: set service_name to sys-cln-backups
|
||||
set_fact:
|
||||
service_name: "sys-cln-backups"
|
||||
when: run_once_cleanup_backups_timer is not defined
|
||||
when: run_once_sys_cln_bkps_timer is not defined
|
||||
|
||||
- name: "include role for sys-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: sys-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_cleanup_backups}}"
|
||||
when: run_once_cleanup_backups_timer is not defined
|
||||
when: run_once_sys_cln_bkps_timer is not defined
|
||||
|
||||
- name: run the cleanup_backups_timer tasks once
|
||||
set_fact:
|
||||
run_once_cleanup_backups_timer: true
|
||||
when: run_once_cleanup_backups_timer is not defined
|
||||
run_once_sys_cln_bkps_timer: true
|
||||
when: run_once_sys_cln_bkps_timer is not defined
|
||||
|
Reference in New Issue
Block a user