mirror of https://github.com/ceph/ceph-ansible.git
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 <dsavinea@redhat.com>
(cherry picked from commit 44c63903ca
)
pull/4068/head
parent
a6312ba9bc
commit
7a384e7ec2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue