Ansible_workstation/tasks/choux_borg_backup.yml

30 lines
572 B
YAML
Raw Normal View History

2018-08-25 06:47:57 +00:00
---
- name: Install borgbackup
pacman:
name: borg
state: present
- name: Automate toward local RAID backup with systemd timer
2018-08-25 06:47:57 +00:00
template:
src: files/choux_borg.sh
dest: {{ borg_script_path }}
2018-08-25 06:47:57 +00:00
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
2018-08-26 10:20:05 +00:00
service:
name: choux_borg
2018-08-26 10:20:05 +00:00
state: started
enabled: yes