]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-mon: port start_monitor task to use new ceph version facts
authorAlfredo Deza <adeza@redhat.com>
Wed, 27 Apr 2016 14:41:39 +0000 (10:41 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 4 May 2016 19:00:02 +0000 (15:00 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
roles/ceph-mon/tasks/start_monitor.yml

index 9d907b3fa717ab2f8d7043059663a99fb0c1eb06..008a0e2555940e1237134c20d4299a9f7b41ad49 100644 (file)
@@ -25,7 +25,7 @@
   changed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    not is_ceph_infernalis
+    is_before_infernalis
 
 - name: enable systemd unit file for mon instance (for or after infernalis)
   file:
@@ -36,7 +36,7 @@
   failed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer
 
 - name: start and add that the monitor service to the init sequence (for or after infernalis)
   service:
@@ -46,7 +46,7 @@
   changed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer
 
 - name: collect admin and bootstrap keys
   command: ceph-create-keys --cluster {{ cluster }} --id {{ monitor_name }}