From: Johannes Kastl Date: Sat, 27 Jul 2019 14:09:26 +0000 (+0200) Subject: only support openSUSE Leap 15.x, fail on 42.x X-Git-Tag: v5.0.0alpha1~179 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ee3d96fb428a734c58d8823daf660b47595bafa;p=ceph-ansible.git only support openSUSE Leap 15.x, fail on 42.x 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 --- diff --git a/roles/ceph-validate/tasks/check_system.yml b/roles/ceph-validate/tasks/check_system.yml index 8f0b81307..9863188a0 100644 --- a/roles/ceph-validate/tasks/check_system.yml +++ b/roles/ceph-validate/tasks/check_system.yml @@ -46,12 +46,12 @@ - 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: