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,4 +1,4 @@
- name: "reload backup-docker-to-local.service"
- name: "reload backup-docker-to-local.cymais.service"
systemd:
name: backup-docker-to-local.service
name: backup-docker-to-local.cymais.service
daemon_reload: yes

View File

@@ -14,18 +14,18 @@
ignore_errors: true
when: run_once_backup_docker_to_local is not defined
- name: configure backup-docker-to-local-everything.service
- name: configure backup-docker-to-local-everything.cymais.service
template:
src: backup-docker-to-local-everything.service.j2
dest: /etc/systemd/system/backup-docker-to-local-everything.service
notify: reload backup-docker-to-local-everything.service
dest: /etc/systemd/system/backup-docker-to-local-everything.cymais.service
notify: reload backup-docker-to-local-everything.cymais.service
when: run_once_backup_docker_to_local is not defined
- name: configure backup-docker-to-local.service
- name: configure backup-docker-to-local.cymais.service
template:
src: backup-docker-to-local.service.j2
dest: /etc/systemd/system/backup-docker-to-local.service
notify: reload backup-docker-to-local.service
dest: /etc/systemd/system/backup-docker-to-local.cymais.service
notify: reload backup-docker-to-local.cymais.service
when: run_once_backup_docker_to_local is not defined
- name: set service_name to the name of the current role

View File

@@ -1,6 +1,6 @@
[Unit]
Description=backup docker volumes to local folder
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
OnFailure=systemd-notifier.cymais@%n.service cleanup-failed-docker-backups.cymais.service
[Service]
Type=oneshot

View File

@@ -1,6 +1,6 @@
[Unit]
Description=backup docker volumes to local folder
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
OnFailure=systemd-notifier.cymais@%n.service cleanup-failed-docker-backups.cymais.service
[Service]
Type=oneshot