2015-01-21 01:43:47 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Ensure systemd service override directory exists
|
|
|
|
ansible.builtin.file:
|
2017-07-05 21:47:48 +08:00
|
|
|
state: directory
|
2017-10-23 21:07:23 +08:00
|
|
|
path: "/etc/systemd/system/ceph-radosgw@.service.d/"
|
2024-02-14 18:14:02 +08:00
|
|
|
mode: "0750"
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ceph_rgw_systemd_overrides is defined
|
2017-07-05 21:47:48 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Add ceph-rgw systemd service overrides
|
2022-01-13 23:57:50 +08:00
|
|
|
openstack.config_template.config_template:
|
2017-07-05 21:47:48 +08:00
|
|
|
src: "ceph-rgw.service.d-overrides.j2"
|
2017-08-30 00:24:52 +08:00
|
|
|
dest: "/etc/systemd/system/ceph-radosgw@.service.d/ceph-radosgw-systemd-overrides.conf"
|
2017-07-05 21:47:48 +08:00
|
|
|
config_overrides: "{{ ceph_rgw_systemd_overrides | default({}) }}"
|
|
|
|
config_type: "ini"
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ceph_rgw_systemd_overrides is defined
|
2017-07-05 21:47:48 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Start rgw instance
|
|
|
|
ansible.builtin.systemd:
|
2021-03-03 22:43:50 +08:00
|
|
|
name: ceph-radosgw@rgw.{{ ansible_facts['hostname'] }}.{{ item.instance_name }}
|
2015-11-21 05:34:29 +08:00
|
|
|
state: started
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: true
|
|
|
|
masked: false
|
2018-11-09 08:56:57 +08:00
|
|
|
with_items: "{{ rgw_instances }}"
|
2018-08-29 18:56:16 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Enable the ceph-radosgw.target service
|
|
|
|
ansible.builtin.systemd:
|
2018-08-29 18:56:16 +08:00
|
|
|
name: ceph-radosgw.target
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: true
|
|
|
|
masked: false
|