mirror of https://github.com/ceph/ceph-ansible.git
20 lines
429 B
YAML
20 lines
429 B
YAML
---
|
|
- name: generate systemd unit file
|
|
become: true
|
|
template:
|
|
src: "{{ role_path }}/templates/ceph-mgr.service.j2"
|
|
dest: /etc/systemd/system/ceph-mgr@.service
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "0644"
|
|
notify:
|
|
- restart ceph mgrs
|
|
|
|
- name: systemd start mgr container
|
|
systemd:
|
|
name: ceph-mgr@{{ ansible_hostname }}
|
|
state: started
|
|
enabled: yes
|
|
daemon_reload: yes
|
|
changed_when: false
|