From: Boris Ranto Date: Fri, 6 Oct 2017 20:52:53 +0000 (+0200) Subject: purge-cluster: Do not fail on systemd commands X-Git-Tag: v3.0.0rc19~1^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f696cb76379b6ed4a2fcfcc7554b3d3822d04cd7;p=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 --- diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 3216ea0e4..d6bf5db46 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -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