From 029b608e1e7069c93c2ade936eb6aff98ee3b061 Mon Sep 17 00:00:00 2001 From: saez0pub Date: Sat, 13 Feb 2016 15:37:08 +0100 Subject: [PATCH] Prevent reinstallation in case of group package --- lib/ansible/modules/extras/packaging/os/pacman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/packaging/os/pacman.py b/lib/ansible/modules/extras/packaging/os/pacman.py index 2e444c1448c..419def43a7c 100644 --- a/lib/ansible/modules/extras/packaging/os/pacman.py +++ b/lib/ansible/modules/extras/packaging/os/pacman.py @@ -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: