mirror of https://github.com/ceph/ceph-ansible.git
Place "when: restapi" in site.yml
parent
ea0e409b51
commit
40e6dd8e4f
|
@ -1,14 +1,12 @@
|
|||
---
|
||||
- include: pre_requisite.yml
|
||||
when: restapi
|
||||
|
||||
- name: Check if Ceph REST API is already started
|
||||
shell: "ps aux|grep [c]eph-rest-api"
|
||||
register: restapi_status
|
||||
when: restapi
|
||||
ignore_errors: True
|
||||
|
||||
- name: Start Ceph REST API
|
||||
shell: "nohup ceph-rest-api &"
|
||||
when: restapi and restapi_status.rc != 0
|
||||
when: restapi_status.rc != 0
|
||||
changed_when: False
|
||||
|
|
Loading…
Reference in New Issue