]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: Do not fail on systemd commands
authorBoris Ranto <branto@redhat.com>
Fri, 6 Oct 2017 20:52:53 +0000 (22:52 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 6 Oct 2017 20:52:56 +0000 (22:52 +0200)
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>
infrastructure-playbooks/purge-cluster.yml

index 3216ea0e4f0baa77ff4181d1e107f0fe637a464b..d6bf5db46a8494b1aaabe9a2b6d7b1d2f172ccf2 100644 (file)
@@ -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
       name: ceph-radosgw@rgw.{{ ansible_hostname }}
       state: stopped
       enabled: no
+    failed_when: false
     when: ansible_service_mgr == 'systemd'
 
   - name: stop ceph rgws
     service:
       name: ceph-rbd-mirror@admin.service
       state: stopped
+    failed_when: false
     when: ansible_service_mgr == 'systemd'
 
   - name: stop ceph rbd mirror on ubuntu
     service:
       name: nfs-ganesha
       state: stopped
+    failed_when: false
     when: ansible_service_mgr == 'systemd'
 
   - name: stop ceph nfss
       name: ceph-mon@{{ ansible_hostname }}
       state: stopped
       enabled: no
+    failed_when: false
     when: ansible_service_mgr == 'systemd'
 
   - name: stop ceph mons