mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-17 02:13:06 -06:00
hotfix: Update 'ansible_python_interpreter' specification
This commit is contained in:
@@ -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"
|
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user