diff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py index 6e8adfeca89..fb9878afebf 100644 --- a/lib/ansible/cli/pull.py +++ b/lib/ansible/cli/pull.py @@ -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':