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 cleanup-disc-space.service"
- name: "reload cleanup-disc-space.cymais.service"
systemd:
name: cleanup-disc-space.service
name: cleanup-disc-space.cymais.service
enabled: yes
daemon_reload: yes

View File

@@ -9,11 +9,11 @@
src: cleanup-disc-space.sh.j2
dest: "{{cleanup_disc_space_folder}}cleanup-disc-space.sh"
- name: create cleanup-disc-space.service
- name: create cleanup-disc-space.cymais.service
template:
src: cleanup-disc-space.service.j2
dest: /etc/systemd/system/cleanup-disc-space.service
notify: reload cleanup-disc-space.service
dest: /etc/systemd/system/cleanup-disc-space.cymais.service
notify: reload cleanup-disc-space.cymais.service
- name: set service_name to the name of the current role
set_fact:

View File

@@ -1,6 +1,6 @@
[Unit]
Description=freeing disc space
OnFailure=systemd-notifier@%n.service
OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot