2017-03-16 17:17:08 +08:00
|
|
|
---
|
|
|
|
- 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"
|
2018-01-08 22:00:32 +08:00
|
|
|
notify:
|
|
|
|
- restart ceph mgrs
|
2017-03-16 17:17:08 +08:00
|
|
|
|
|
|
|
- name: systemd start mgr container
|
2017-09-29 20:54:00 +08:00
|
|
|
systemd:
|
2017-03-16 17:17:08 +08:00
|
|
|
name: ceph-mgr@{{ ansible_hostname }}
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
2017-09-29 20:54:00 +08:00
|
|
|
daemon_reload: yes
|
2017-03-16 17:17:08 +08:00
|
|
|
changed_when: false
|