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
|
2015-06-29 20:15:07 +08:00
|
|
|
shell: "pgrep 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
|
2015-06-29 20:15:07 +08:00
|
|
|
register: restapi_status
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: start ceph rest api
|
2015-06-29 20:15:07 +08:00
|
|
|
shell: "nohup ceph-rest-api &"
|
|
|
|
changed_when: false
|
|
|
|
when: restapi_status.rc != 0
|