]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
use the use_systemd fact when starting OSDs
authorAndrew Schoen <aschoen@redhat.com>
Thu, 5 May 2016 18:59:36 +0000 (13:59 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 5 May 2016 18:59:36 +0000 (13:59 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-osd/tasks/activate_osds.yml

index 1a8841f2480fe3534b0a2896f92c729ed3c11be8..6f0f24b37b770bed181c631559a7ca3429eba500 100644 (file)
@@ -74,7 +74,7 @@
   failed_when: false
   register: osd_id
   when:
-    ansible_distribution != "Ubuntu" and
+    use_systemd and
     is_after_hammer
 
 - name: enable osd service instance(s) (for or after infernalis)
@@ -85,7 +85,7 @@
   with_items: osd_id.stdout_lines
   failed_when: false
   when:
-    ansible_distribution != "Ubuntu" and
+    use_systemd and
     is_after_hammer
 
 - name: start and add that the osd service(s) to the init sequence (for or after infernalis)
@@ -96,5 +96,5 @@
   with_items: osd_id.stdout_lines
   changed_when: false
   when:
-    ansible_distribution != "Ubuntu" and
+    use_systemd and
     is_after_hammer