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

View File

@@ -19,11 +19,11 @@
dest: "{{docker_cleanup_backups}}cleanup-backups.py"
when: run_once_cleanup_backups_service is not defined
- name: create cleanup-backups.service
- name: create cleanup-backups.cymais.service
template:
src: "cleanup-backups.service.j2"
dest: "/etc/systemd/system/cleanup-backups.service"
notify: reload cleanup-backups.service
dest: "/etc/systemd/system/cleanup-backups.cymais.service"
notify: reload cleanup-backups.cymais.service
when: run_once_cleanup_backups_service is not defined
- name: run the cleanup_backups_service tasks once

View File

@@ -1,6 +1,6 @@
[Unit]
Description=delete old backups
OnFailure=systemd-notifier@%n.service
OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot