mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
@@ -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"})
|
||||
|
||||
installed = True
|
||||
for packages in pkgspec:
|
||||
for package in pkgspec:
|
||||
if not query_package_provides(module, package, allow_upgrade=False):
|
||||
installed = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user