mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00: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:
		| @@ -6,7 +6,7 @@ This Ansible role handles resetting and cleaning up “Infinito.Nexus” systemd | ||||
|  | ||||
| When enabled via the `mode_reset` flag, this role will: | ||||
|  | ||||
| 1. Run its reset tasks exactly once per play (`run_once_core_daemon` guard).   | ||||
| 1. Run its reset tasks exactly once per play (`run_once_sys_rst_daemon` guard).   | ||||
| 2. Find all `/etc/systemd/system/*.infinito.service` units.   | ||||
| 3. Stop and disable each unit.   | ||||
| 4. Remove the unit files.   | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| - name: "reset (if enabled)" | ||||
|   include_tasks: reset.yml  | ||||
|   when: mode_reset | bool and run_once_core_daemon is not defined | ||||
|   when: mode_reset | bool and run_once_sys_rst_daemon is not defined | ||||
|  | ||||
| - name: run {{ role_name }} once | ||||
|   set_fact: | ||||
|     run_once_core_daemon: true | ||||
|   when: run_once_core_daemon is not defined | ||||
|     run_once_sys_rst_daemon: true | ||||
|   when: run_once_sys_rst_daemon is not defined | ||||
		Reference in New Issue
	
	Block a user