From 5a3f95dfc1bc9bba7ad62999969997ce0a27da13 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 25 Apr 2017 07:35:13 -0500 Subject: [PATCH] purge-cluster: check for any running ceph process after purge Signed-off-by: Andrew Schoen --- infrastructure-playbooks/purge-cluster.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infrastructure-playbooks/purge-cluster.yml b/infrastructure-playbooks/purge-cluster.yml index 4b6c03ceb..5a756fd92 100644 --- a/infrastructure-playbooks/purge-cluster.yml +++ b/infrastructure-playbooks/purge-cluster.yml @@ -506,6 +506,11 @@ 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