From 054569da7063fa7e2c193ce26396cd696279af9f Mon Sep 17 00:00:00 2001 From: Elijah DeLee Date: Fri, 3 Sep 2021 15:21:34 -0400 Subject: [PATCH] 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. --- awxkit/awxkit/api/pages/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awxkit/awxkit/api/pages/inventory.py b/awxkit/awxkit/api/pages/inventory.py index b5f897e768..33c84f2aa2 100644 --- a/awxkit/awxkit/api/pages/inventory.py +++ b/awxkit/awxkit/api/pages/inventory.py @@ -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):