]> 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>
Thu, 5 May 2016 18:56:32 +0000 (13:56 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-mon/tasks/start_monitor.yml

index ce9225dbab0f129aeab35af3f08f79cb82806edf..7cd13de1688d82e8f43817b23aa4f607313d9e16 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