From: crcceph Date: Wed, 16 Dec 2015 17:01:36 +0000 (-0800) Subject: move set_fact above test X-Git-Tag: v1.0.0~75^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=923cd6fc2c481a92a1e9ea4fc9125e8f65e53c29;p=ceph-ansible.git move set_fact above test moved the set_fact above where it is being tested --- diff --git a/roles/ceph-common/tasks/main.yml b/roles/ceph-common/tasks/main.yml index ff7046593..30ecba5a2 100644 --- a/roles/ceph-common/tasks/main.yml +++ b/roles/ceph-common/tasks/main.yml @@ -100,6 +100,12 @@ - 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 }}" @@ -118,8 +124,3 @@ mode: 0770 when: is_ceph_infernalis -# 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', '>'))) }}