From ab2fb1856afb205dfaca3b4cee80f82236cea1d1 Mon Sep 17 00:00:00 2001 From: bjne Date: Mon, 8 Jun 2015 18:08:13 +0200 Subject: [PATCH] simplify running process check eventually pidof --- roles/ceph-restapi/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-restapi/tasks/main.yml b/roles/ceph-restapi/tasks/main.yml index f8c0d8da2..773186275 100644 --- a/roles/ceph-restapi/tasks/main.yml +++ b/roles/ceph-restapi/tasks/main.yml @@ -2,7 +2,7 @@ - include: pre_requisite.yml - name: check if Ceph REST API is already started - shell: "ps aux|grep [c]eph-rest-api" + shell: "pgrep ceph-rest-api" register: restapi_status ignore_errors: True -- 2.39.5