]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
prep-fog-capture: Clean yum cache 549/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 16 Mar 2020 13:49:37 +0000 (09:49 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 16 Mar 2020 15:17:08 +0000 (11:17 -0400)
Hopefully fixes: https://github.com/ceph/ceph-cm-ansible/pull/544#issuecomment-599076564

Signed-off-by: David Galloway <dgallowa@redhat.com>
tools/prep-fog-capture.yml

index e381dd0c7c0f830de8f6ac9299766c4db097f1c4..2308ea72f317186e4380e4c4826b92edfb7bf2c6 100644 (file)
       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"