summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgenii Terechkov <evg@altlinux.org>2016-07-29 08:17:04 +0700
committerMichael Scherer <mscherer@users.noreply.github.com>2016-10-23 03:06:12 +0200
commitbfee04d5035447773f232d27b62f8d160d2dd9ae (patch)
tree319182718907d140d8f27ec73e8d45083305c3a9
parent30ed23bf1c9b555c84ecf0547c11bbfdde8e3879 (diff)
downloadansible-modules-core-bfee04d5035447773f232d27b62f8d160d2dd9ae.tar.gz
Ensure that we use shell
to run apt-get -y install ... >/dev/null this commit must fix #2839
-rwxr-xr-x[-rw-r--r--]packaging/os/apt_rpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/os/apt_rpm.py b/packaging/os/apt_rpm.py
index fec220e0..5d923de8 100644..100755
--- a/packaging/os/apt_rpm.py
+++ b/packaging/os/apt_rpm.py
@@ -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: