mirror of https://github.com/ceph/ceph-ansible.git
11 lines
249 B
YAML
11 lines
249 B
YAML
|
---
|
||
|
- name: check if Ceph REST API is already started
|
||
|
shell: "pgrep ceph-rest-api"
|
||
|
ignore_errors: true
|
||
|
register: restapi_status
|
||
|
|
||
|
- name: start Ceph REST API
|
||
|
shell: "nohup ceph-rest-api &"
|
||
|
changed_when: false
|
||
|
when: restapi_status.rc != 0
|