ceph-ansible/roles/ceph-radosgw/tasks/start_radosgw.yml

27 lines
622 B
YAML
Raw Normal View History

---
# NOTE (leseb): 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
changed_when: false
ignore_errors: true
register: rgwstatus
- 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
service: >
name=ceph-radosgw
state=started
when: ansible_os_family == 'RedHat'