]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
use the use_systemd fact when starting monitors
authorAndrew Schoen <aschoen@redhat.com>
Thu, 5 May 2016 18:56:32 +0000 (13:56 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 9 May 2016 16:16:27 +0000 (11:16 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 20d2d52ebd7d6cc426afe789a990d61ea61da0d2)

roles/ceph-mon/tasks/start_monitor.yml

index 008a0e2555940e1237134c20d4299a9f7b41ad49..4383e072abe5bc7448cddb739abfd78985862922 100644 (file)
   with_items:
     - done
     - upstart
-  when: ansible_distribution == "Ubuntu"
+  when: not use_systemd
 
 - name: start and add that the monitor service to the init sequence (ubuntu)
   command: initctl emit ceph-mon cluster={{ cluster }} id={{ monitor_name }}
   changed_when: false
   failed_when: false
-  when: ansible_distribution == "Ubuntu"
+  when: not use_systemd
 
 # NOTE (leseb): somehow the service ansible module is messing things up
 # as a safety measure we run the raw command
@@ -35,7 +35,7 @@
   changed_when: false
   failed_when: false
   when:
-    ansible_distribution != "Ubuntu" and
+    use_systemd and
     is_after_hammer
 
 - name: start and add that the monitor service to the init sequence (for or after infernalis)
@@ -45,7 +45,7 @@
       enabled: yes
   changed_when: false
   when:
-    ansible_distribution != "Ubuntu" and
+    use_systemd and
     is_after_hammer
 
 - name: collect admin and bootstrap keys