diff --git a/library/packaging/easy_install b/library/packaging/easy_install index 88f867dd285..eae361c4321 100644 --- a/library/packaging/easy_install +++ b/library/packaging/easy_install @@ -19,6 +19,7 @@ # along with Ansible. If not, see . # +import tempfile import os.path DOCUMENTATION = ''' @@ -151,6 +152,7 @@ def main(): command = '%s %s' % (virtualenv, env) if site_packages: command += ' --system-site-packages' + os.chdir(tempfile.gettempdir()) rc_venv, out_venv, err_venv = module.run_command(command) rc += rc_venv