the $? of pgrep ceph-rest-api command return is 1 when ceph-rest-api already run. use ps instead

pull/1381/head
yuliyang 2017-03-17 17:40:45 +08:00
parent d82ad7778d
commit aa90fe6417
1 changed files with 1 additions and 1 deletions

View 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