mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
parent
211688ef1b
commit
17e11d7d7e
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue