mirror of https://github.com/ceph/ceph-ansible.git
Added an additional task for starting/enabling a service based on a systemd target if systemd is available. Otherwise using the init script.
parent
b354445914
commit
210e4d4a01
|
@ -31,3 +31,11 @@
|
|||
name: ceph
|
||||
state: started
|
||||
enabled: yes
|
||||
when: ansible_service_mgr != "systemd"
|
||||
|
||||
- name: start and add the OSD target to the systemd sequence
|
||||
service:
|
||||
name: ceph.target
|
||||
state: started
|
||||
enabled: yes
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
|
Loading…
Reference in New Issue