--- - name: Ensure systemd service override directory exists ansible.builtin.file: state: directory path: "/etc/systemd/system/ceph-radosgw@.service.d/" mode: "0750" when: ceph_rgw_systemd_overrides is defined - name: Add ceph-rgw systemd service overrides openstack.config_template.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 instance ansible.builtin.systemd: name: ceph-radosgw@rgw.{{ ansible_facts['hostname'] }}.{{ item.instance_name }} state: started enabled: true masked: false with_items: "{{ rgw_instances }}" - name: Enable the ceph-radosgw.target service ansible.builtin.systemd: name: ceph-radosgw.target enabled: true masked: false