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

index 81c9ea36eebfb6a194d50ead5e99bdf12f5f73fe..1a8841f2480fe3534b0a2896f92c729ed3c11be8 100644 (file)
@@ -57,7 +57,7 @@
     ansible_selinux != false and
     ansible_selinux['status'] == 'enabled' and
     ansible_selinux['config_mode'] != 'disabled' and
-    not is_ceph_infernalis
+    is_before_infernalis
 
 - name: start and add that the osd service(s) to the init sequence (before infernalis)
   service:
@@ -66,7 +66,7 @@
     enabled: yes
   when:
     ansible_distribution != "Ubuntu" and
-    not is_ceph_infernalis
+    is_before_infernalis
 
 - name: get osd id (for or after infernalis)
   shell: "ls /var/lib/ceph/osd/ | grep '-' | cut -d '-' -f 2"
@@ -75,7 +75,7 @@
   register: osd_id
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer
 
 - name: enable osd service instance(s) (for or after infernalis)
   file:
@@ -86,7 +86,7 @@
   failed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer
 
 - name: start and add that the osd service(s) to the init sequence (for or after infernalis)
   service:
@@ -97,4 +97,4 @@
   changed_when: false
   when:
     ansible_distribution != "Ubuntu" and
-    is_ceph_infernalis
+    is_after_hammer