From b562dba1bf7ddbca652ed661e8eb4b47e76d1eb6 Mon Sep 17 00:00:00 2001 From: "@RubenKelevra" <@RubenKelevra> Date: Mon, 11 May 2015 23:58:08 +0200 Subject: [PATCH] change -Syy to -Sy -Syy do always update, which is not needed, since the caches might already be up to date. --- lib/ansible/modules/extras/packaging/os/pacman.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/packaging/os/pacman.py b/lib/ansible/modules/extras/packaging/os/pacman.py index 463d524ff8..102865bc44 100644 --- a/lib/ansible/modules/extras/packaging/os/pacman.py +++ b/lib/ansible/modules/extras/packaging/os/pacman.py @@ -78,7 +78,7 @@ EXAMPLES = ''' # Recursively remove package baz - pacman: name=baz state=absent recurse=yes -# Run the equivalent of "pacman -Syy" as a separate step +# Run the equivalent of "pacman -Sy" as a separate step - pacman: update_cache=yes ''' @@ -124,7 +124,7 @@ def query_package(module, name, state="present"): def update_package_db(module): - cmd = "pacman -Syy" + cmd = "pacman -Sy" rc, stdout, stderr = module.run_command(cmd, check_rc=False) if rc == 0: