ceph-validate: fail on CentOS 7

The Ceph Octopus release is only supported on CentOS 8

Closes: #4918

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4921/head
Dimitri Savineau 2020-01-10 11:25:54 -05:00 committed by Dimitri Savineau
parent dc672e86ec
commit e4ddcb812b
1 changed files with 7 additions and 0 deletions

View File

@ -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'