From: Dimitri Savineau Date: Fri, 10 Jan 2020 16:25:54 +0000 (-0500) Subject: ceph-validate: fail on CentOS 7 X-Git-Tag: v6.0.0alpha1~126 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e4ddcb812bb89dcb16502d2a42f337c1849a8114;p=ceph-ansible.git ceph-validate: fail on CentOS 7 The Ceph Octopus release is only supported on CentOS 8 Closes: #4918 Signed-off-by: Dimitri Savineau --- diff --git a/roles/ceph-validate/tasks/check_system.yml b/roles/ceph-validate/tasks/check_system.yml index 10bc007f7..0f1719a22 100644 --- a/roles/ceph-validate/tasks/check_system.yml +++ b/roles/ceph-validate/tasks/check_system.yml @@ -26,6 +26,13 @@ msg: "Distribution not supported {{ ansible_os_family }}" when: ansible_os_family not in ['Debian', 'RedHat', 'ClearLinux', 'Suse'] +- name: fail on unsupported CentOS release + fail: + msg: "CentOS release not supported {{ ansible_distribution_major_version }}" + when: + - ansible_distribution == 'CentOS' + - ansible_distribution_major_version | int != 8 + - name: red hat based systems tasks when: - ceph_repository == 'rhcs'