no, can't reference itself, add pipenv_venv to inventory vars

This commit is contained in:
Geoff Jacobs
2023-08-11 10:19:52 +10:00
parent aaf54f389c
commit edc77e99a6
2 changed files with 3 additions and 2 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

@@ -19,7 +19,7 @@
- unzip
- fontconfig
vars:
ansible_python_interpreter: "{{ '/usr/bin/python2' if ((ansible_distribution | lower == 'amazon') and (ansible_distribution_version == '2')) else ansible_python_interpreter }}"
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: