From 2f1ae36b15c2af277ce2b1002174f3497137406e Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 10 Nov 2018 16:10:37 +0100 Subject: [PATCH] Fix(Choux): Create borg script directory --- tasks/choux_borg_backup.yml | 8 +++++++- vars/Choux.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/choux_borg_backup.yml b/tasks/choux_borg_backup.yml index 558666a..638c4c6 100644 --- a/tasks/choux_borg_backup.yml +++ b/tasks/choux_borg_backup.yml @@ -4,10 +4,16 @@ name: borg state: present +- name: Create script directory + file: + path: "{{ borg_script_path }}" + state: directory + mode: 755 + - name: Automate toward local RAID backup with systemd timer template: src: files/choux_borg.sh - dest: "{{ borg_script_path }}" + dest: "{{ borg_script_path }}"/backup.sh mode: 755 - name: Backup systemd timer diff --git a/vars/Choux.yml b/vars/Choux.yml index f545ea4..3e775a5 100644 --- a/vars/Choux.yml +++ b/vars/Choux.yml @@ -3,6 +3,6 @@ deploy_public_key: files/id_ed25519_home.pub borg_backup_repo: /media/backup/Choux -borg_script_path: /root/.borg/backup.sh +borg_script_path: /root/.borg