Ansible_workstation/tasks/choux_borg_backup.yml

30 lines
574 B
YAML

---
- name: Install borgbackup
pacman:
name: borg
state: present
- name: Automate toward local RAID backup with systemd timer
template:
src: files/choux_borg.sh
dest: "{{ borg_script_path }}"
mode: 755
- name: Backup systemd timer
template:
src: files/choux_borg.timer
dest: /etc/systemd/system/
mode: 755
- name: Backup systemd service
template:
src: files/choux_borg.service
dest: /etc/systemd/system/
mode: 755
- name: Enable systemd borg script
service:
name: choux_borg
state: started
enabled: yes