ansible-ceph/roles/ceph-mon/tasks/systemd.yml
2026-04-06 07:08:17 +03:00

24 lines
637 B
YAML

---
- name: Generate systemd unit file for mon container
ansible.builtin.template:
src: "{{ role_path }}/templates/ceph-mon.service.j2"
dest: /etc/systemd/system/ceph-mon@.service
owner: "root"
group: "root"
mode: "0644"
notify: Restart ceph mons
- name: Generate systemd ceph-mon target file
ansible.builtin.copy:
src: ceph-mon.target
dest: /etc/systemd/system/ceph-mon.target
mode: "0644"
when: containerized_deployment | bool
- name: Enable ceph-mon.target
ansible.builtin.service:
name: ceph-mon.target
enabled: true
daemon_reload: true
when: containerized_deployment | bool