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-mgr.service.j2"
|
|
|
|
dest: /etc/systemd/system/ceph-mgr@.service
|
|
|
|
owner: "root"
|
|
|
|
group: "root"
|
|
|
|
mode: "0644"
|
2024-02-14 18:14:02 +08:00
|
|
|
notify: Restart ceph mgrs
|
2021-08-10 21:21:19 +08:00
|
|
|
|
2024-02-14 18:14:02 +08:00
|
|
|
- name: Generate systemd ceph-mgr target file
|
|
|
|
ansible.builtin.copy:
|
2021-08-10 21:21:19 +08:00
|
|
|
src: ceph-mgr.target
|
|
|
|
dest: /etc/systemd/system/ceph-mgr.target
|
2024-02-14 18:14:02 +08:00
|
|
|
mode: "0644"
|
|
|
|
when: containerized_deployment | bool
|