mirror of https://github.com/ceph/ceph-ansible.git
24 lines
619 B
YAML
24 lines
619 B
YAML
---
|
|
- name: Generate systemd unit file
|
|
ansible.builtin.template:
|
|
src: "{{ role_path }}/templates/ceph-osd.service.j2"
|
|
dest: /etc/systemd/system/ceph-osd@.service
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
notify: Restart ceph osds
|
|
|
|
- name: Generate systemd ceph-osd target file
|
|
ansible.builtin.copy:
|
|
src: ceph-osd.target
|
|
dest: /etc/systemd/system/ceph-osd.target
|
|
mode: "0644"
|
|
when: containerized_deployment | bool
|
|
|
|
- name: Enable ceph-osd.target
|
|
ansible.builtin.service:
|
|
name: ceph-osd.target
|
|
enabled: true
|
|
daemon_reload: true
|
|
when: containerized_deployment | bool
|