computer-playbook/roles/backup-data-to-usb/tasks/main.yml

16 lines
453 B
YAML
Raw Normal View History

- 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
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
dest: /etc/systemd/system/backup-data-to-usb.cymais.service
owner: root
group: root
mode: '0644'
notify: reload backup-data-to-usb.cymais.service