mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Added .cymais.service suffix to make cymais files more visible
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=delete old backups
|
||||
OnFailure=systemd-notifier@%n.service
|
||||
OnFailure=systemd-notifier.cymais@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Reference in New Issue
Block a user