Fix startup and move vars to group_vars
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
#
#radosgw: false # referenced in monitor role too.
#radosgw_dns_name: your.subdomain.tld # subdomains used by radosgw. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls
+#radosgw_frontend: civetweb # supported options are 'apache' or 'civetweb', also edit roles/ceph-radosgw/defaults/main.yml
+#radosgw_civetweb_port: 80
## REST API options
#
register: rgwstatus
ignore_errors: True
+- name: start RGW
+ command: /etc/init.d/radosgw start
+ when: rgwstatus.rc != 0 and ansible_distribution != "Ubuntu" and ansible_os_family != 'RedHat'
+
- name: start RGW
service: name=radosgw-all state=started
when: ansible_distribution == "Ubuntu"
- name: start RGW
- command: /etc/init.d/radosgw start
- when: rgwstatus.rc != 0 and ansible_distribution != "Ubuntu"
+ service: name=ceph-radosgw state=started
+ when: ansible_os_family == 'RedHat'