From 20e1a3395977cf3fcf1948193119f075ac0250b4 Mon Sep 17 00:00:00 2001 From: AndyG Date: Wed, 7 Nov 2018 15:27:31 +0000 Subject: [PATCH] Update yum.py (#47749) add explanation why you must use "shell: yum clean all" and why it won't be included in the yum module as per https://github.com/ansible/ansible/pull/31450#issuecomment-352889579 --- lib/ansible/modules/packaging/os/yum.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index 17c9aa1c065..328c98b6457 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -210,6 +210,10 @@ notes: "@development-tools" and environment groups are "@^gnome-desktop-environment". Use the "yum group list" command to see which category of group the group you want to install falls into.' + - 'The yum module does not support clearing yum cache in an idempotent way, so it + was decided not to implement it, the only method is to use shell and call the yum + command directly, namely "shell: yum clean all" + https://github.com/ansible/ansible/pull/31450#issuecomment-352889579' # informational: requirements for nodes requirements: - yum