Added an additional task for starting/enabling a service based on a systemd target if systemd is available. Otherwise using the init script.

pull/608/head
Derek Anderson 2016-03-07 18:01:54 -05:00
parent b354445914
commit 210e4d4a01
1 changed files with 8 additions and 0 deletions

View File

@ -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"