mirror of https://github.com/ceph/ceph-ansible.git
the $? of pgrep ceph-rest-api command return is 1 when ceph-rest-api already run. use ps instead
parent
d82ad7778d
commit
aa90fe6417
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: check if ceph rest api is already started
|
- name: check if ceph rest api is already started
|
||||||
shell: "pgrep ceph-rest-api"
|
shell: "pgrep -f ceph-rest-api"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
always_run: true
|
always_run: true
|
||||||
|
|
Loading…
Reference in New Issue