]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
the $? of pgrep ceph-rest-api command return is 1 when ceph-rest-api already run... 1381/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Fri, 17 Mar 2017 09:40:45 +0000 (17:40 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Sat, 18 Mar 2017 13:41:53 +0000 (21:41 +0800)
roles/ceph-restapi/tasks/start_restapi.yml

index 357c5d7a2a70a3182999d188f15b2655756dab0c..68fd25bd84dcfd8b4d9c7134d69a592091166e84 100644 (file)
@@ -1,6 +1,6 @@
 ---
 - name: check if ceph rest api is already started
-  shell: "pgrep ceph-rest-api"
+  shell: "pgrep -f ceph-rest-api"
   changed_when: false
   failed_when: false
   always_run: true