mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Prevent reinstallation in case of group package
This commit is contained in:
@@ -234,7 +234,7 @@ def install_packages(module, pacman_path, state, packages, package_files):
|
||||
else:
|
||||
params = '-S %s' % package
|
||||
|
||||
cmd = "%s %s --noconfirm" % (pacman_path, params)
|
||||
cmd = "%s %s --noconfirm --needed" % (pacman_path, params)
|
||||
rc, stdout, stderr = module.run_command(cmd, check_rc=False)
|
||||
|
||||
if rc != 0:
|
||||
|
||||
Reference in New Issue
Block a user