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/5275/head
Dimitri Savineau 2020-04-09 14:00:52 -04:00 committed by Dimitri Savineau
parent 3ce5a71a9c
commit 4428487abc
1 changed files with 3 additions and 3 deletions

View File

@ -34,12 +34,12 @@
- name: red hat based systems tasks - name: red hat based systems tasks
when: when:
- ceph_repository == 'rhcs' - ceph_repository == 'rhcs'
- ansible_distribution == 'Red Hat Enterprise Linux' - ansible_distribution == 'RedHat'
block: block:
- name: fail on unsupported distribution for red hat ceph storage - name: fail on unsupported distribution for red hat ceph storage
fail: fail:
msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 7.3" msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 8.2"
when: ansible_distribution_version | version_compare('7.3', '<') when: ansible_distribution_version | version_compare('8.2', '<')
- name: subscription manager related tasks - name: subscription manager related tasks
when: ceph_repository_type == 'cdn' when: ceph_repository_type == 'cdn'