]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
only support openSUSE Leap 15.x, fail on 42.x
authorJohannes Kastl <kastl@b1-systems.de>
Sat, 27 Jul 2019 14:09:26 +0000 (16:09 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 5 Aug 2019 13:46:31 +0000 (09:46 -0400)
openSUSE switched from 'openSUSE 13.x' to 'openSUSE Leap 42.x' and then to
'openSUSE Leap 15.x' to align with SLES15 development.
The previous logic did not correctly allow the current release, as 15.x matched
the 'less than 42.3' condition.

For now only support openSUSE Leap 15.x, and extend support once 16.x is
released (or whatever the exact version will be)

Signed-off-by: Johannes Kastl <kastl@b1-systems.de>
roles/ceph-validate/tasks/check_system.yml

index 8f0b813077073a21d8ef6be0c1003b38968232f6..9863188a03463e8327830361d754db5e7c6fb5b1 100644 (file)
     - ceph_repository == 'uca'
     - ansible_distribution != 'Ubuntu'
 
-- name: fail on unsupported openSUSE distribution
+- name: "fail on unsupported openSUSE distribution (only 15.x supported)"
   fail:
     msg: "Distribution not supported: {{ ansible_distribution }}"
   when:
     - ansible_distribution == 'openSUSE Leap'
-    - ansible_distribution_version is version_compare('42.3', '<')
+    - ansible_distribution_major_version != '15'
 
 - name: fail on unsupported ansible version (1.X)
   fail: