Run pip command from the system's temp directory
This commit is contained in:
parent
fc8d9377d5
commit
dd79d66dba
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,8 @@
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import tempfile
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: pip
|
module: pip
|
||||||
|
@ -217,6 +219,7 @@ def main():
|
||||||
|
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
module.exit_json(changed=True)
|
module.exit_json(changed=True)
|
||||||
|
os.chdir(tempfile.gettempdir())
|
||||||
rc, out_pip, err_pip = module.run_command(cmd)
|
rc, out_pip, err_pip = module.run_command(cmd)
|
||||||
out += out_pip
|
out += out_pip
|
||||||
err += err_pip
|
err += err_pip
|
||||||
|
|
Loading…
Reference in a new issue