add home as a default value

This commit is contained in:
Andreas Zweili 2021-11-15 17:52:05 +01:00
parent bc1a38078a
commit 158d4fbdcb
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ fi
if [ $(hostname) == {{ ansible_facts['hostname'] }} ]
then
cd {{ docker_project_path }}
cd {{ docker_project_path | default('/home/ansible') }}
sudo docker-compose pause
sudo -E restic backup /home/ansible --exclude-file=/etc/restic/excludes.txt
fi