From 8fd4785062655ce385e7d544d32230371cac61ea Mon Sep 17 00:00:00 2001 From: Evgenii Terechkov Date: Fri, 29 Jul 2016 08:17:04 +0700 Subject: [PATCH] Ensure that we use shell to run apt-get -y install ... >/dev/null this commit must fix #2839 --- lib/ansible/modules/packaging/os/apt_rpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 lib/ansible/modules/packaging/os/apt_rpm.py diff --git a/lib/ansible/modules/packaging/os/apt_rpm.py b/lib/ansible/modules/packaging/os/apt_rpm.py old mode 100644 new mode 100755 index fec220e051..5d923de85e --- a/lib/ansible/modules/packaging/os/apt_rpm.py +++ b/lib/ansible/modules/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: