DCD-224: Use provided Ansible virtualenv if provided.

This commit is contained in:
Steve Smith
2019-04-17 12:43:56 +10:00
parent 53800d6dc8
commit 1874454163

View File

@@ -13,4 +13,9 @@ set -a
source $ENV_FILE
set +a
# Use Ansible from virtualenv if provided
if [[ -f .venv/bin/ansible ]]; then
source .venv/bin/activate
fi
ansible-playbook -v -i $INV $PLAYBOOK | tee --append $LOG_FILE