mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized auto backup
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user