2023-05-27 23:04:22 +02:00
|
|
|
- name: Copy backup script to the scripts directory
|
2023-05-28 16:35:45 +02:00
|
|
|
copy:
|
2023-11-16 17:07:28 +01:00
|
|
|
src: backup-data-to-usb.python
|
2023-05-27 23:04:22 +02:00
|
|
|
dest: "{{ backup_to_usb_script_path }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
- name: Copy systemd service to systemd directory
|
|
|
|
template:
|
2023-11-16 17:07:28 +01:00
|
|
|
src: backup-data-to-usb.service.j2
|
2024-01-10 11:18:38 +01:00
|
|
|
dest: /etc/systemd/system/backup-data-to-usb.cymais.service
|
2023-05-27 23:04:22 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
2024-01-10 11:18:38 +01:00
|
|
|
notify: reload backup-data-to-usb.cymais.service
|