2019-07-24 16:10:18 +08:00
|
|
|
---
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Generate systemd unit file
|
|
|
|
ansible.builtin.template:
|
2019-07-24 16:10:18 +08:00
|
|
|
src: "{{ role_path }}/templates/ceph-radosgw.service.j2"
|
|
|
|
dest: /etc/systemd/system/ceph-radosgw@.service
|
|
|
|
owner: "root"
|
|
|
|
group: "root"
|
|
|
|
mode: "0644"
|
2024-02-14 18:14:02 +08:00
|
|
|
notify: Restart ceph rgws
|
2021-08-10 21:21:19 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Generate systemd ceph-radosgw target file
|
|
|
|
ansible.builtin.copy:
|
2021-08-10 21:21:19 +08:00
|
|
|
src: ceph-radosgw.target
|
|
|
|
dest: /etc/systemd/system/ceph-radosgw.target
|
2024-02-14 18:14:02 +08:00
|
|
|
mode: "0644"
|
2021-08-10 21:21:19 +08:00
|
|
|
when: containerized_deployment | bool
|
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Enable ceph-radosgw.target
|
|
|
|
ansible.builtin.service:
|
2021-08-10 21:21:19 +08:00
|
|
|
name: ceph-radosgw.target
|
2024-02-14 18:14:02 +08:00
|
|
|
enabled: true
|
|
|
|
daemon_reload: true
|
|
|
|
when: containerized_deployment | bool
|