mirror of https://github.com/ceph/ceph-ansible.git
purge-cluster: Do not fail on systemd commands
The systemd can't stop services if the unit files were removed before the cluster was purged. We should just ignore these. Signed-off-by: Boris Ranto <branto@redhat.com>pull/2013/head
parent
1121a840ef
commit
f696cb7637
|
@ -67,6 +67,7 @@
|
|||
name: ceph-mds@{{ ansible_hostname }}
|
||||
state: stopped
|
||||
enabled: no
|
||||
failed_when: false
|
||||
when: ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: stop ceph mdss
|
||||
|
@ -97,6 +98,7 @@
|
|||
name: ceph-mgr@{{ ansible_hostname}}
|
||||
state: stopped
|
||||
enabled: no
|
||||
failed_when: false
|
||||
when: ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: purge ceph rgw cluster
|
||||
|
@ -118,6 +120,7 @@
|
|||
name: ceph-radosgw@rgw.{{ ansible_hostname }}
|
||||
state: stopped
|
||||
enabled: no
|
||||
failed_when: false
|
||||
when: ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: stop ceph rgws
|
||||
|
@ -148,6 +151,7 @@
|
|||
service:
|
||||
name: ceph-rbd-mirror@admin.service
|
||||
state: stopped
|
||||
failed_when: false
|
||||
when: ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: stop ceph rbd mirror on ubuntu
|
||||
|
@ -174,6 +178,7 @@
|
|||
service:
|
||||
name: nfs-ganesha
|
||||
state: stopped
|
||||
failed_when: false
|
||||
when: ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: stop ceph nfss
|
||||
|
@ -478,6 +483,7 @@
|
|||
name: ceph-mon@{{ ansible_hostname }}
|
||||
state: stopped
|
||||
enabled: no
|
||||
failed_when: false
|
||||
when: ansible_service_mgr == 'systemd'
|
||||
|
||||
- name: stop ceph mons
|
||||
|
|
Loading…
Reference in New Issue