Merged in fix-ansible-python-interpreter (pull request #202)

Fix ansible python interpreter

Approved-by: Eugene Ivantsov
This commit is contained in:
Geoff Jacobs
2023-08-11 01:56:07 +00:00
4 changed files with 6 additions and 1 deletions

View File

@@ -9,7 +9,8 @@
#
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html
ansible_python_interpreter: "{{ pipenv_venv | default('/usr/bin/python') }}"
pipenv_venv: /usr/bin/python # this will get overridden by the wrapper scripts, but should allow molecule to run
ansible_python_interpreter: "{{ pipenv_venv }}"
java_major_version: "8"
postgres_version: "9.6"

View File

@@ -2,3 +2,4 @@
atl_product_user_uid: '2001'
git_version: "2.14.4"
pipenv_venv: "/usr/bin/python"

View File

@@ -3,5 +3,6 @@
hosts: all
vars:
atl_product_user: "jira"
pipenv_venv: "/usr/bin/python"
roles:
- role: linux_common

View File

@@ -18,6 +18,8 @@
- curl
- unzip
- fontconfig
vars:
ansible_python_interpreter: "{{ '/usr/bin/python2' if ((ansible_distribution | lower == 'amazon') and (ansible_distribution_version == '2')) else pipenv_venv }}"
- name: Create product group
ansible.builtin.group: