mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-13 00:28:37 -05:00
emulate workaround present in demo inventory
see https://github.com/ansible/awx/commit/9d000a76dee370690562b34e17c6b157035e53cf 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:
@@ -249,7 +249,7 @@ class Host(HasCreate, HasVariables, base.Base):
|
|||||||
variables = kwargs.get('variables', not_provided)
|
variables = kwargs.get('variables', not_provided)
|
||||||
|
|
||||||
if variables is None:
|
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 variables != not_provided:
|
||||||
if isinstance(variables, dict):
|
if isinstance(variables, dict):
|
||||||
|
|||||||
Reference in New Issue
Block a user