Avoid auto-interpreter for ansible-pull localhost. (#53699)
This commit is contained in:
parent
06c5c11970
commit
35b95abf28
1 changed files with 2 additions and 0 deletions
|
@ -170,6 +170,8 @@ class PullCLI(CLI):
|
||||||
inv_opts = self._get_inv_cli()
|
inv_opts = self._get_inv_cli()
|
||||||
if not inv_opts:
|
if not inv_opts:
|
||||||
inv_opts = " -i localhost, "
|
inv_opts = " -i localhost, "
|
||||||
|
# avoid interpreter discovery since we already know which interpreter to use on localhost
|
||||||
|
inv_opts += '-e %s ' % shlex_quote('ansible_python_interpreter=%s' % sys.executable)
|
||||||
|
|
||||||
# SCM specific options
|
# SCM specific options
|
||||||
if context.CLIARGS['module_name'] == 'git':
|
if context.CLIARGS['module_name'] == 'git':
|
||||||
|
|
Loading…
Reference in a new issue