]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
moved set_fact higher in file 460/head
authorcrcceph <crcceph@gmail.com>
Wed, 16 Dec 2015 19:01:39 +0000 (11:01 -0800)
committercrcceph <crcceph@gmail.com>
Wed, 16 Dec 2015 19:01:39 +0000 (11:01 -0800)
moved set_fact for is_ceph_infernalis near top of file so that it can be used in other tests

roles/ceph-common/tasks/main.yml

index 30ecba5a23261d6f14b1af9e1cbb49bd4ec7ded5..46752906c85cd082151e484dd422b428c35117d7 100644 (file)
     radosgw_frontend == 'apache' and
     rgw_group_name in group_names
 
+# NOTE (leseb): be careful with the following
+# somehow the YAML syntax using "is_ceph_infernalis: {{"
+# does NOT work, so we keep this syntax styling...
+- set_fact:
+    is_ceph_infernalis={{ (ceph_stable and ceph_stable_release not in ceph_stable_releases) or (ceph_stable_rh_storage and (rh_storage_version.stdout | version_compare('0.94', '>'))) }}
+
 - name: check for a ceph socket
   shell: "stat /var/run/ceph/*.asok > /dev/null 2>&1"
   changed_when: false
     - restart ceph rgws on red hat
     - restart ceph rgws with systemd
 
-# NOTE (leseb): be careful with the following
-# somehow the YAML syntax using "is_ceph_infernalis: {{"
-# does NOT work, so we keep this syntax styling...
-- set_fact:
-    is_ceph_infernalis={{ (ceph_stable and ceph_stable_release not in ceph_stable_releases) or (ceph_stable_rh_storage and (rh_storage_version.stdout | version_compare('0.94', '>'))) }}
-
 - name: create rbd client directory (before infernalis)
   file:
     path: "{{ rbd_client_admin_socket_path }}"