Fix(Choux): Create borg script directory

This commit is contained in:
Bertrand Benjamin 2018-11-10 16:10:37 +01:00
parent 3c5d5fbff6
commit 2f1ae36b15
2 changed files with 8 additions and 2 deletions

View File

@ -4,10 +4,16 @@
name: borg name: borg
state: present state: present
- name: Create script directory
file:
path: "{{ borg_script_path }}"
state: directory
mode: 755
- name: Automate toward local RAID backup with systemd timer - name: Automate toward local RAID backup with systemd timer
template: template:
src: files/choux_borg.sh src: files/choux_borg.sh
dest: "{{ borg_script_path }}" dest: "{{ borg_script_path }}"/backup.sh
mode: 755 mode: 755
- name: Backup systemd timer - name: Backup systemd timer

View File

@ -3,6 +3,6 @@
deploy_public_key: files/id_ed25519_home.pub deploy_public_key: files/id_ed25519_home.pub
borg_backup_repo: /media/backup/Choux borg_backup_repo: /media/backup/Choux
borg_script_path: /root/.borg/backup.sh borg_script_path: /root/.borg