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

29 lines
784 B
YAML

---
- name: ensure systemd service override directory exists
file:
state: directory
path: "/etc/systemd/system/ceph-radosgw@.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
- name: enable the ceph-radosgw.target service
systemd:
name: ceph-radosgw.target
enabled: yes
masked: no