From 5ee3d96fb428a734c58d8823daf660b47595bafa Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Sat, 27 Jul 2019 16:09:26 +0200 Subject: [PATCH] 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 --- roles/ceph-validate/tasks/check_system.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5