diff options
author | Evgenii Terechkov <evg@altlinux.org> | 2016-07-29 08:17:04 +0700 |
---|---|---|
committer | Michael Scherer <mscherer@users.noreply.github.com> | 2016-10-23 03:06:12 +0200 |
commit | bfee04d5035447773f232d27b62f8d160d2dd9ae (patch) | |
tree | 319182718907d140d8f27ec73e8d45083305c3a9 | |
parent | 30ed23bf1c9b555c84ecf0547c11bbfdde8e3879 (diff) | |
download | ansible-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.py | 2 |
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: |