]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-rbd-mirror: port start_rbd_mirror task to use new ceph version facts
authorAlfredo Deza <adeza@redhat.com>
Wed, 27 Apr 2016 14:48:46 +0000 (10:48 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 27 Apr 2016 17:46:58 +0000 (13:46 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
roles/ceph-rbd-mirror/tasks/start_rbd_mirror.yml

index cf2c47fb55d9bc92cc954042d46ca81d72d9985a..92a47ccc4a4d996544094b359379a5723fef488f 100644 (file)
@@ -12,7 +12,7 @@
   changed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    not is_ceph_infernalis
+    is_before_infernalis
 
 - name: enable systemd unit file for the rbd mirror service (for or after infernalis)
   file:
@@ -23,7 +23,7 @@
   failed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer
 
 - name: start and add that the rbd mirror service to the init sequence (for or after infernalis)
   service:
@@ -33,4 +33,4 @@
   changed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer