Avoid auto-interpreter for ansible-pull localhost. (#53699)

pull/53704/head
Matt Clay 5 years ago committed by GitHub
parent 06c5c11970
commit 35b95abf28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,6 +170,8 @@ class PullCLI(CLI):
inv_opts = self._get_inv_cli()
if not inv_opts:
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
if context.CLIARGS['module_name'] == 'git':

Loading…
Cancel
Save