]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
roles/ceph-validate/tasks/check_system.yml: fail on unsupported SUSE versions
authorJohannes Kastl <kastl@b1-systems.de>
Wed, 21 Aug 2019 19:36:38 +0000 (21:36 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 22 Aug 2019 15:17:21 +0000 (17:17 +0200)
Fail if SUSE distributions other than 15.x are found, similar to what we have
for openSUSE

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

index 9863188a03463e8327830361d754db5e7c6fb5b1..15baf4686ea8609edb80ce518f44a7af62af3a67 100644 (file)
     - ceph_repository == 'uca'
     - ansible_distribution != 'Ubuntu'
 
-- name: "fail on unsupported openSUSE distribution (only 15.x supported)"
+- name: "fail on unsupported SUSE/openSUSE distribution (only 15.x supported)"
   fail:
-    msg: "Distribution not supported: {{ ansible_distribution }}"
+    msg: "Distribution not supported: {{ ansible_distribution }} {{ ansible_distribution_major_version }}"
   when:
-    - ansible_distribution == 'openSUSE Leap'
+    - ansible_distribution == 'openSUSE Leap' or ansible_distribution == 'SUSE'
     - ansible_distribution_major_version != '15'
 
 - name: fail on unsupported ansible version (1.X)