mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-06 10:21:34 +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:
@@ -3,28 +3,28 @@
|
||||
name: pkgmgr-install
|
||||
vars:
|
||||
package_name: btrfs-auto-balancer
|
||||
when: run_once_system_btrfs_auto_balancer is not defined
|
||||
when: run_once_sys_rpr_btrfs_blnc is not defined
|
||||
|
||||
- name: configure sys-rpr-btrfs-blnc.infinito.service
|
||||
template:
|
||||
src: sys-rpr-btrfs-blnc.service.j2
|
||||
dest: /etc/systemd/system/sys-rpr-btrfs-blnc.infinito.service
|
||||
notify: reload sys-rpr-btrfs-blnc.infinito.service
|
||||
when: run_once_system_btrfs_auto_balancer is not defined
|
||||
when: run_once_sys_rpr_btrfs_blnc is not defined
|
||||
|
||||
- name: "set 'service_name' to '{{ role_name }}'"
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
when: run_once_system_btrfs_auto_balancer is not defined
|
||||
when: run_once_sys_rpr_btrfs_blnc is not defined
|
||||
|
||||
- name: "include role for sys-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: sys-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_btrfs_auto_balancer}}"
|
||||
when: run_once_system_btrfs_auto_balancer is not defined
|
||||
when: run_once_sys_rpr_btrfs_blnc is not defined
|
||||
|
||||
- name: run the system_btrfs_auto_balancer tasks once
|
||||
set_fact:
|
||||
run_once_system_btrfs_auto_balancer: true
|
||||
when: run_once_system_btrfs_auto_balancer is not defined
|
||||
run_once_sys_rpr_btrfs_blnc: true
|
||||
when: run_once_sys_rpr_btrfs_blnc is not defined
|
||||
|
Reference in New Issue
Block a user