2015-01-21 01:43:47 +08:00
|
|
|
---
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: check if rgw is started
|
2015-01-21 01:43:47 +08:00
|
|
|
command: /etc/init.d/radosgw status
|
|
|
|
register: rgwstatus
|
2015-08-03 23:39:57 +08:00
|
|
|
changed_when: false
|
2015-07-29 00:21:15 +08:00
|
|
|
failed_when: false
|
2016-11-24 18:54:43 +08:00
|
|
|
always_run: true
|
2015-03-23 19:20:00 +08:00
|
|
|
|
2015-07-07 17:19:50 +08:00
|
|
|
- name: start rgw
|
2015-11-21 05:34:29 +08:00
|
|
|
service:
|
2016-03-18 01:34:56 +08:00
|
|
|
name: ceph-radosgw@rgw.{{ ansible_hostname }}
|
2015-11-21 05:34:29 +08:00
|
|
|
state: started
|
|
|
|
enabled: yes
|