mirror of https://github.com/ceph/ceph-ansible.git
ceph-validate: update RHEL requirement for RHCS
We were not testing the right ansible_distribution fact value for RHEL
distribution.
This commit also updates the minial RHEL version supported by RHCS.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 5de74fe512
)
pull/5277/head
parent
1b79d73729
commit
1033ad191b
|
@ -29,12 +29,13 @@
|
|||
- name: red hat based systems tasks
|
||||
when:
|
||||
- ceph_repository == 'rhcs'
|
||||
- ansible_distribution == 'Red Hat Enterprise Linux'
|
||||
- ansible_distribution == 'RedHat'
|
||||
block:
|
||||
- name: fail on unsupported distribution for red hat ceph storage
|
||||
fail:
|
||||
msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 7.3"
|
||||
when: ansible_distribution_version | version_compare('7.3', '<')
|
||||
msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL 8 (>= 8.1) or RHEL 7 (>= 7.7)"
|
||||
when: (ansible_distribution_major_version | int == 8 and ansible_distribution_version | version_compare('8.1', '<')) or
|
||||
(ansible_distribution_major_version | int == 7 and ansible_distribution_version | version_compare('7.7', '<'))
|
||||
|
||||
- name: subscription manager related tasks
|
||||
when: ceph_repository_type == 'cdn'
|
||||
|
|
Loading…
Reference in New Issue