mirror of https://github.com/ceph/ceph-ansible.git
create is_before_RELEASE vars as well
Signed-off-by: Alfredo Deza <adeza@redhat.com>pull/737/head
parent
8f35f1fb9b
commit
be8ae40bfb
|
@ -11,6 +11,20 @@
|
||||||
# NOTE (leseb/jsaintrocc): You are supposed to quote variables
|
# NOTE (leseb/jsaintrocc): You are supposed to quote variables
|
||||||
# that follow colons to avoid confusion with dicts but this
|
# that follow colons to avoid confusion with dicts but this
|
||||||
# causes issues with the boolean, so we keep this syntax styling...
|
# 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:
|
- set_fact:
|
||||||
is_after_hammer={{ ceph_version | version_compare('0.95.0', '>') }}
|
is_after_hammer={{ ceph_version | version_compare('0.95.0', '>') }}
|
||||||
|
|
||||||
|
@ -23,6 +37,7 @@
|
||||||
- set_fact:
|
- set_fact:
|
||||||
is_after_kraken={{ ceph_version | version_compare('11.4.0', '>') }}
|
is_after_kraken={{ ceph_version | version_compare('11.4.0', '>') }}
|
||||||
|
|
||||||
|
# is_version facts
|
||||||
- set_fact:
|
- set_fact:
|
||||||
is_hammer={{ ceph_version | version_compare('0.94.0', '>=') | version_compare('9.0.0', '<') }}
|
is_hammer={{ ceph_version | version_compare('0.94.0', '>=') | version_compare('9.0.0', '<') }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue