mirror of https://github.com/ceph/ceph-ansible.git
22 lines
551 B
YAML
22 lines
551 B
YAML
---
|
|
- name: generate systemd unit file
|
|
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
|
|
copy:
|
|
src: ceph-osd.target
|
|
dest: /etc/systemd/system/ceph-osd.target
|
|
when: containerized_deployment | bool
|
|
|
|
- name: enable ceph-osd.target
|
|
service:
|
|
name: ceph-osd.target
|
|
enabled: yes
|
|
daemon_reload: yes
|
|
when: containerized_deployment | bool |