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

23 lines
659 B
YAML
Raw Normal View History

---
- name: ensure systemd service override directory exists
file:
state: directory
path: "/etc/systemd/system/ceph-rgw@.service.d/"
when:
- ceph_rgw_systemd_overrides is defined
- name: add ceph-rgw systemd service overrides
config_template:
src: "ceph-rgw.service.d-overrides.j2"
dest: "/etc/systemd/system/ceph-radosgw@.service.d/ceph-radosgw-systemd-overrides.conf"
config_overrides: "{{ ceph_rgw_systemd_overrides | default({}) }}"
config_type: "ini"
when:
- ceph_rgw_systemd_overrides is defined
- name: start rgw
service:
name: ceph-radosgw@rgw.{{ ansible_hostname }}
state: started
enabled: yes