2019-07-24 16:10:18 +08:00
|
|
|
---
|
|
|
|
- name: generate systemd unit file
|
|
|
|
template:
|
|
|
|
src: "{{ role_path }}/templates/ceph-rbd-mirror.service.j2"
|
|
|
|
dest: /etc/systemd/system/ceph-rbd-mirror@.service
|
|
|
|
owner: "root"
|
|
|
|
group: "root"
|
|
|
|
mode: "0644"
|
|
|
|
notify: restart ceph rbdmirrors
|
2021-08-10 21:21:19 +08:00
|
|
|
|
|
|
|
- name: generate systemd ceph-rbd-mirror target file
|
|
|
|
copy:
|
|
|
|
src: ceph-rbd-mirror.target
|
|
|
|
dest: /etc/systemd/system/ceph-rbd-mirror.target
|
|
|
|
when: containerized_deployment | bool
|
|
|
|
|
|
|
|
- name: enable ceph-rbd-mirror.target
|
|
|
|
service:
|
|
|
|
name: ceph-rbd-mirror.target
|
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|
|
|
|
when: containerized_deployment | bool
|