mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Refactor alarm compose service and systemctl templates
- Fixed bug where not both alarm services (email + telegram) were triggered. - Removed direct OnFailure references for email and telegram, now handled by unified compose service. - Introduced 01_core.yml in sys-ctl-alm-compose to structure role execution (subservices → core service → test run). - Added configurable variables SYSTEMCTL_ALARM_COMPOSER_SUBSERVICES and SYSTEMCTL_ALARM_COMPOSER_DUMMY_MESSAGE. - Replaced dedicated @.service template with generic systemctl template using systemctl_tpl_* variables for flexibility. - Updated script.sh.j2 to collect exit codes and print clear errors. - Fixed typos and streamlined vars in sys-systemctl. See conversation: https://chatgpt.com/share/68a46172-7c3c-800f-a69c-0cb9edd6839f
This commit is contained in:
		| @@ -1,14 +1,4 @@ | ||||
| - block: | ||||
|   - name: "Include '{{ systemctl_id }}'" | ||||
|     include_role: | ||||
|       name: '{{ item }}' | ||||
|     loop: | ||||
|       - sys-ctl-alm-telegram | ||||
|       - sys-ctl-alm-email | ||||
|       - sys-systemctl | ||||
|     vars: | ||||
|       flush_handlers: true | ||||
|       systemctl_timer_enabled: false | ||||
|       systemctl_copy_files: false | ||||
|   - include_tasks: 01_core.yml | ||||
|   - include_tasks: utils/run_once.yml | ||||
|   when: run_once_sys_ctl_alm_compose is not defined | ||||
|   | ||||
		Reference in New Issue
	
	Block a user