]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-validate: fail on CentOS 7
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 10 Jan 2020 16:25:54 +0000 (11:25 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 10 Jan 2020 19:06:02 +0000 (14:06 -0500)
The Ceph Octopus release is only supported on CentOS 8

Closes: #4918
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-validate/tasks/check_system.yml

index 10bc007f7136d78dfff5119d459b4abb13df04d2..0f1719a22d3882e4e230bf1c87fd7c439fc2724b 100644 (file)
     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'