diff --git a/ansible/roles/repo/tasks/redhat.yaml b/ansible/roles/repo/tasks/redhat.yaml index e86b86d1e..183149cff 100644 --- a/ansible/roles/repo/tasks/redhat.yaml +++ b/ansible/roles/repo/tasks/redhat.yaml @@ -119,3 +119,7 @@ until: konvoy_repo_installation_rpm is success retries: 5 delay: 6 + +- name: clean yum caches + shell: yum clean all + when: ansible_distribution_major_version == '7'