mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
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:
parent
4a6ab622df
commit
054569da70
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user