]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
simplify running process check 270/head
authorbjne <bjornar.ness@gmail.com>
Mon, 8 Jun 2015 16:08:13 +0000 (18:08 +0200)
committerbjne <bjornar.ness@gmail.com>
Mon, 8 Jun 2015 16:08:13 +0000 (18:08 +0200)
eventually pidof

roles/ceph-restapi/tasks/main.yml

index f8c0d8da23c8380d8f887929cd871478511fd010..7731862759d5cbb4a46fdf6c8f7f367ba15fd889 100644 (file)
@@ -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