mirror of https://github.com/ceph/ceph-ansible.git
14 lines
332 B
YAML
14 lines
332 B
YAML
---
|
|
- name: check if ceph rest api is already started
|
|
shell: "pgrep -f ceph-rest-api"
|
|
changed_when: false
|
|
failed_when: false
|
|
check_mode: no
|
|
register: restapi_status
|
|
|
|
- name: start ceph rest api
|
|
shell: "nohup ceph-rest-api --conf /etc/ceph/{{ cluster }}.conf &"
|
|
changed_when: false
|
|
when:
|
|
- restapi_status.rc != 0
|