Add git pull operation to backup role

This commit is contained in:
Nemo 2020-07-25 07:30:17 +02:00
parent e62e11c739
commit eb82a501f3
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ fi
cd {{ backup_folder }}/{{ backup_user_git }}/{{ (git_repo | basename | splitext)[0] }}
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git fetch --all
GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git pull
{% endfor %}