hotfix: Update 'ansible_python_interpreter' specification

This commit is contained in:
Dylan Rathbone
2020-11-03 12:36:48 +10:00
parent cf89195a37
commit 20ed39d9af
2 changed files with 4 additions and 3 deletions

View File

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

View File

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