From 7a384e7ec29fb0d3156a686919ca459d0911382d Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 6 Jun 2019 13:51:16 -0400 Subject: [PATCH] purge-cluster: clean all ceph repo files We currently only purge rh_storage yum repository file but depending on the ceph_repository value we are using, the ceph repository file could have a different name. Resolves: #4056 Signed-off-by: Dimitri Savineau (cherry picked from commit 44c63903cacb06fd6a32fcc591d31b2be3c7e82a) --- infrastructure-playbooks/purge-cluster.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index c9d469ac7..ea50f1b81 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -734,10 +734,14 @@ command: apt-get clean when: ansible_pkg_mgr == 'apt' - - name: purge rh_storage.repo file in /etc/yum.repos.d + - name: purge ceph repo file in /etc/yum.repos.d file: - path: /etc/yum.repos.d/rh_storage.repo + path: '/etc/yum.repos.d/{{ item }}.repo' state: absent + with_items: + - ceph-dev + - ceph_stable + - rh_storage when: ansible_os_family == 'RedHat' - name: check for anything running ceph -- 2.47.3