From 4de5c5b4d3046e0b193977a4625d2ead89c82626 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 16 Mar 2020 09:49:37 -0400 Subject: [PATCH] prep-fog-capture: Clean yum cache Hopefully fixes: https://github.com/ceph/ceph-cm-ansible/pull/544#issuecomment-599076564 Signed-off-by: David Galloway --- tools/prep-fog-capture.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/prep-fog-capture.yml b/tools/prep-fog-capture.yml index e381dd0c..2308ea72 100644 --- a/tools/prep-fog-capture.yml +++ b/tools/prep-fog-capture.yml @@ -88,6 +88,13 @@ state: absent when: ansible_distribution == "RedHat" + # Hopefully fixes https://github.com/ceph/ceph-cm-ansible/pull/544#issuecomment-599076564 + - name: Clean DNF cache + shell: "dnf clean all && rm -rf /var/cache/dnf/*" + when: + - ansible_os_family == "RedHat" + - ansible_distribution_major_version|int >= 8 + - set_fact: ntp_service: ntp when: ansible_os_family == "Debian"