]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: clean all ceph repo files
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 6 Jun 2019 17:51:16 +0000 (13:51 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 7 Jun 2019 07:28:14 +0000 (09:28 +0200)
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 <dsavinea@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index f4daf0e1c5332a5158817cd8c874d0b79ad834df..a2b0f97f5692debaa73f172c2053f5a7da02b542 100644 (file)
     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