2015-06-29 20:15:07 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: check if ceph rest api is already started
|
2017-03-17 17:40:45 +08:00
|
|
|
shell: "pgrep -f ceph-rest-api"
|
2015-07-17 20:06:25 +08:00
|
|
|
changed_when: false
|
2015-07-29 00:21:15 +08:00
|
|
|
failed_when: false
|
2016-11-27 21:16:36 +08:00
|
|
|
always_run: true
|
2015-06-29 20:15:07 +08:00
|
|
|
register: restapi_status
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: start ceph rest api
|
2016-12-15 20:17:00 +08:00
|
|
|
shell: "nohup ceph-rest-api --conf /etc/ceph/{{ cluster }}.conf &"
|
2015-06-29 20:15:07 +08:00
|
|
|
changed_when: false
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- restapi_status.rc != 0
|