]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Added an additional task for starting/enabling a service based on a systemd target... 608/head
authorDerek Anderson <derek.anderson@helloworld.com>
Mon, 7 Mar 2016 23:01:54 +0000 (18:01 -0500)
committerDerek Anderson <derek.anderson@helloworld.com>
Mon, 7 Mar 2016 23:04:39 +0000 (18:04 -0500)
roles/ceph-osd/tasks/scenarios/osd_directory.yml

index efe8d1ba74393e968085ebc025c714346c504f62..b277b8e6dbfc92e90feceab489ff9bff85eccb66 100644 (file)
     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"