From: Alfredo Deza Date: Wed, 27 Apr 2016 13:28:17 +0000 (-0400) Subject: create is_before_RELEASE vars as well X-Git-Tag: v1.0.6~156^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be8ae40bfb100e38ff17d5127a47f747ef663265;p=ceph-ansible.git create is_before_RELEASE vars as well Signed-off-by: Alfredo Deza --- diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index bb90e5fa5..240305b55 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -11,6 +11,20 @@ # NOTE (leseb/jsaintrocc): You are supposed to quote variables # that follow colons to avoid confusion with dicts but this # causes issues with the boolean, so we keep this syntax styling... +# is_before facts +- set_fact: + is_before_hammer={{ ceph_version | version_compare('0.94.0', '<') }} + +- set_fact: + is_before_infernalis={{ ceph_version | version_compare('9.0.0', '<') }} + +- set_fact: + is_before_jewel={{ ceph_version | version_compare('10.0.0', '<') }} + +- set_fact: + is_before_kraken={{ ceph_version | version_compare('11.0.0', '<') }} + +# is_after facts - set_fact: is_after_hammer={{ ceph_version | version_compare('0.95.0', '>') }} @@ -23,6 +37,7 @@ - set_fact: is_after_kraken={{ ceph_version | version_compare('11.4.0', '>') }} +# is_version facts - set_fact: is_hammer={{ ceph_version | version_compare('0.94.0', '>=') | version_compare('9.0.0', '<') }}