Added .cymais.service suffix to make cymais files more visible

This commit is contained in:
2024-01-10 11:18:38 +01:00
parent f3ce00dca7
commit b7e3a7f838
68 changed files with 144 additions and 132 deletions

View File

@@ -1,5 +1,5 @@
- name: "reload health-journalctl.service"
- name: "reload health-journalctl.cymais.service"
systemd:
name: health-journalctl.service
name: health-journalctl.cymais.service
enabled: yes
daemon_reload: yes

View File

@@ -11,11 +11,11 @@
dest: "{{health_journalctl_folder}}health-journalctl.sh"
when: run_once_health_journalctl is not defined
- name: create health-journalctl.service
- name: create health-journalctl.cymais.service
template:
src: health-journalctl.service.j2
dest: /etc/systemd/system/health-journalctl.service
notify: reload health-journalctl.service
dest: /etc/systemd/system/health-journalctl.cymais.service
notify: reload health-journalctl.cymais.service
when: run_once_health_journalctl is not defined
- name: set service_name to the name of the current role

View File

@@ -1,6 +1,6 @@
[Unit]
Description=checking journalctl health
OnFailure=systemd-notifier@%n.service
OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot