From: bjne Date: Mon, 8 Jun 2015 16:08:13 +0000 (+0200) Subject: simplify running process check X-Git-Tag: v1.0.0~214^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F270%2Fhead;p=ceph-ansible.git simplify running process check eventually pidof --- 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