mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
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.
This commit is contained in:
14
roles/sys-ctl-alm-compose/tasks/main.yml
Normal file
14
roles/sys-ctl-alm-compose/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- 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
|
Reference in New Issue
Block a user