Kevin Veen-Birkenbach 3a839cfe37
Refactor systemctl services and categories due to alarm bugs
This commit restructures systemctl service definitions and category mappings.

Motivation: Alarm-related bugs revealed inconsistencies in service and role handling.

Preparation step: lays the groundwork for fixing the alarm issues by aligning categories, roles, and service templates.
2025-08-18 13:35:43 +02:00

15 lines
451 B
YAML

- block:
- name: Include dependencies
include_role:
name: '{{ item }}'
loop:
- sys-ctl-alm-telegram
- sys-ctl-alm-email
- name: "setup '{{ SYS_SERVICE_ALARM_CMP }}'"
template:
src: sys-ctl-alm-compose@.service.j2
dest: "/etc/systemd/system/{{ SYS_SERVICE_ALARM_CMP }}"
notify: "restart sys-ctl-alm-compose service"
- include_tasks: utils/run_once.yml
when: run_once_sys_ctl_alm_compose is not defined