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 backup-data-to-usb.service"
|
||||
- name: "reload backup-data-to-usb.cymais.service"
|
||||
systemd:
|
||||
name: backup-data-to-usb.service
|
||||
name: backup-data-to-usb.cymais.service
|
||||
state: reloaded
|
||||
daemon_reload: yes
|
||||
|
@@ -9,8 +9,8 @@
|
||||
- name: Copy systemd service to systemd directory
|
||||
template:
|
||||
src: backup-data-to-usb.service.j2
|
||||
dest: /etc/systemd/system/backup-data-to-usb.service
|
||||
dest: /etc/systemd/system/backup-data-to-usb.cymais.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: reload backup-data-to-usb.service
|
||||
notify: reload backup-data-to-usb.cymais.service
|
@@ -1,11 +1,11 @@
|
||||
[Unit]
|
||||
Description=Backup to USB when mounted to {{ backup_to_usb_mount }}
|
||||
Wants={{systemctl_mount_service_name}}
|
||||
OnFailure=systemd-notifier@%n.service
|
||||
OnFailure=systemd-notifier.cymais@%n.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/python {{ backup_to_usb_script_path }} {{backup_to_usb_source}} {{backup_to_usb_destination}}
|
||||
ExecStartPost=/bin/systemctl start cleanup-backups.service
|
||||
ExecStartPost=/bin/systemctl start cleanup-backups.cymais.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user