Optimized auto backup

This commit is contained in:
2023-05-28 16:35:45 +02:00
parent bc0e5f33b8
commit 31dc0191f1
8 changed files with 89 additions and 75 deletions

View File

@@ -1,13 +1,6 @@
---
- name: Copy udev rule to the rules directory
template:
src: 99-usbstick.rules.j2
dest: /etc/udev/rules.d/
notify: Reload udev rules
- name: Copy backup script to the scripts directory
template:
src: backup-to-usb.sh.j2
copy:
src: backup-to-usb.python
dest: "{{ backup_to_usb_script_path }}"
owner: root
group: root
@@ -20,9 +13,4 @@
owner: root
group: root
mode: '0644'
- name: Enable and start service
systemd:
name: backup-to-usb
enabled: yes
state: started
notify: reload backup-to-usb.service