mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
Merge pull request #11022 from kdelee/try-localhost
Set python to ansible_playbook_python on hosts
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='127.0.0.1', 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