changing where we set the ansible_python_interpreter so that it can be overriden at a task level

This commit is contained in:
Geoff Jacobs
2023-08-11 09:10:07 +10:00
parent 42afc0e66f
commit 7300302287
2 changed files with 3 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ set +a
pipenv run \ pipenv run \
ansible-playbook -v \ ansible-playbook -v \
$ATL_DEPLOYMENT_REPOSITORY_CUSTOM_PARAMS \ $ATL_DEPLOYMENT_REPOSITORY_CUSTOM_PARAMS \
-e "ansible_python_interpreter=$(pipenv --venv)/bin/python" \ -e "pipenv_venv=$(pipenv --venv)/bin/python" \
-e "${PLAYBOOK_INVOCATION_EXTRA_PARAMS}" \ -e "${PLAYBOOK_INVOCATION_EXTRA_PARAMS}" \
-i $INV \ -i $INV \
$PLAYBOOK \ $PLAYBOOK \

View File

@@ -9,6 +9,8 @@
# #
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html # https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html
ansible_python_interpreter: "{{ pipenv_venv | default(omit) }}"
java_major_version: "8" java_major_version: "8"
postgres_version: "9.6" postgres_version: "9.6"
git_version: "2.14.4" git_version: "2.14.4"