parent
211688ef1b
commit
17e11d7d7e
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- "apt_rpm - when checking whether packages were installed after running ``apt-get -y install <packages>``, only the last package name was checked (https://github.com/ansible-collections/community.general/pull/8263)."
|
|
@ -281,7 +281,7 @@ def install_packages(module, pkgspec, allow_upgrade=False):
|
||||||
rc, out, err = module.run_command("%s -y install %s" % (APT_PATH, packages), environ_update={"LANG": "C"})
|
rc, out, err = module.run_command("%s -y install %s" % (APT_PATH, packages), environ_update={"LANG": "C"})
|
||||||
|
|
||||||
installed = True
|
installed = True
|
||||||
for packages in pkgspec:
|
for package in pkgspec:
|
||||||
if not query_package_provides(module, package, allow_upgrade=False):
|
if not query_package_provides(module, package, allow_upgrade=False):
|
||||||
installed = False
|
installed = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue