ceph-ansible/roles/ceph-restapi/tasks/start_restapi.yml

12 lines
271 B
YAML
Raw Normal View History

---
- name: check if ceph rest api is already started
shell: "pgrep ceph-rest-api"
changed_when: false
ignore_errors: true
register: restapi_status
- name: start ceph rest api
shell: "nohup ceph-rest-api &"
changed_when: false
when: restapi_status.rc != 0