emulate workaround present in demo inventory

see 9d000a76de

This change works around the fact that the presumed correct python3 for rhel8 (which the EE is based on)
is not the python3 that ansible-playbook is using, and is not where the python dependencies are installed.
This commit is contained in:
Elijah DeLee 2021-09-03 15:21:34 -04:00
parent 4a6ab622df
commit 054569da70

View File

@ -249,7 +249,7 @@ class Host(HasCreate, HasVariables, base.Base):
variables = kwargs.get('variables', not_provided)
if variables is None:
variables = dict(ansible_host='localhost', ansible_connection='local')
variables = dict(ansible_host='localhost', ansible_connection='local', ansible_python_interpreter='{{ ansible_playbook_python }}')
if variables != not_provided:
if isinstance(variables, dict):