Refactor alarm composer and sys-service handling:

- Introduce dynamic SYSTEMCTL_ALARM_COMPOSER_SUBSERVICES based on Mailu token and MODE_RESET
- Prevent inclusion of sys-ctl-alm-email when disabled
- Add system_service_is_template flag to avoid state-setting on template services
- Update notifications to reload daemon for @ template units
- Align msmtp execution conditions

See: https://chatgpt.com/share/692c7a71-afcc-800f-8aba-6800a042ce3b
This commit is contained in:
2025-11-30 18:10:30 +01:00
parent 5a523cfe24
commit e53abbec3b
6 changed files with 19 additions and 14 deletions

View File

@@ -1,9 +1,7 @@
- name: "Include dependent services for '{{ system_service_id }}'"
include_role:
name: '{{ item }}'
loop:
- sys-ctl-alm-telegram
- sys-ctl-alm-email
loop: '{{ SYSTEMCTL_ALARM_COMPOSER_SUBSERVICES }}'
vars:
flush_handlers: true
system_service_timer_enabled: false