2015-01-21 01:43:47 +08:00
|
|
|
---
|
|
|
|
## If we don't perform this check Ansible will start multiple instance of radosgw
|
|
|
|
- name: Check if RGW is started
|
|
|
|
command: /etc/init.d/radosgw status
|
|
|
|
register: rgwstatus
|
|
|
|
ignore_errors: True
|
2015-03-23 19:20:00 +08:00
|
|
|
|
|
|
|
- name: Start RGW
|
|
|
|
service: name=radosgw-all state=started
|
|
|
|
when: ansible_distribution == "Ubuntu"
|
2015-01-21 01:43:47 +08:00
|
|
|
|
|
|
|
- name: Start RGW
|
|
|
|
command: /etc/init.d/radosgw start
|
2015-03-23 19:20:00 +08:00
|
|
|
when: rgwstatus.rc != 0 and ansible_distribution != "Ubuntu"
|