hotfix: Update 'ansible_python_interpreter' specification

This commit is contained in:
Dylan Rathbone
2020-11-03 13:35:23 +10:00
parent 20ed39d9af
commit e0036eb24f
2 changed files with 3 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
[defaults]
retry_files_enabled = False
callback_whitelist = profile_tasks
callback_whitelist = profile_tasks
interpreter_python="/usr/bin/env python3"

View File

@@ -10,9 +10,6 @@ ENV_FILE=${4:-"/etc/atl"}
export PATH=/usr/local/bin:$PATH
export PIP_DEFAULT_TIMEOUT=60
VENV_PYTHON_INTERPRETER = $(pipenv --py)
# Set the environment with default exports
set -a
source $ENV_FILE
@@ -20,7 +17,7 @@ set +a
# Use Ansible from virtualenv if provided
pipenv run \
ansible-playbook -e ansible_python_interpreter=$VENV_PYTHON_INTERPRETER -vvv \
ansible-playbook -vvv \
$ATL_DEPLOYMENT_REPOSITORY_CUSTOM_PARAMS \
-e "${PLAYBOOK_INVOCATION_EXTRA_PARAMS}" \
-i $INV \