]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
purge-cluster: check for any running ceph process after purge 1464/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 25 Apr 2017 12:35:13 +0000 (07:35 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 25 Apr 2017 14:30:22 +0000 (09:30 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
infrastructure-playbooks/purge-cluster.yml

index 4b6c03cebc795af7c28510ef0631e9159ecf12f6..5a756fd92e47682afb03405d2808c0f38c8d5296 100644 (file)
       state: absent
     when: ansible_os_family == 'RedHat'
 
+  - name: check for anything running ceph
+    command: "ps -u ceph -U ceph"
+    register: check_for_running_ceph
+    failed_when: check_for_running_ceph.rc == 0
+
 
 - name: purge fetch directory