Ensure that we use shell

to run apt-get -y install ... >/dev/null

this commit must fix #2839
This commit is contained in:
Evgenii Terechkov 2016-07-29 08:17:04 +07:00 committed by Matt Clay
parent 914e205eb3
commit 8fd4785062

2
lib/ansible/modules/packaging/os/apt_rpm.py Normal file → Executable file
View file

@ -126,7 +126,7 @@ def install_packages(module, pkgspec):
cmd = ("%s -y install %s > /dev/null" % (APT_PATH, packages))
rc, out, err = module.run_command(cmd)
rc, out, err = module.run_command(cmd,use_unsafe_shell=True)
installed = True
for packages in pkgspec: