mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Ensure that we use shell
to run apt-get -y install ... >/dev/null this commit must fix #2839
This commit is contained in:
parent
914e205eb3
commit
8fd4785062
1 changed files with 1 additions and 1 deletions
2
lib/ansible/modules/packaging/os/apt_rpm.py
Normal file → Executable file
2
lib/ansible/modules/packaging/os/apt_rpm.py
Normal file → Executable file
|
@ -126,7 +126,7 @@ def install_packages(module, pkgspec):
|
||||||
|
|
||||||
cmd = ("%s -y install %s > /dev/null" % (APT_PATH, packages))
|
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
|
installed = True
|
||||||
for packages in pkgspec:
|
for packages in pkgspec:
|
||||||
|
|
Loading…
Reference in a new issue