From a8994af28cd6c54e28b1830bfea59b57bb3e7089 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..76d5daab 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 + command: 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"