]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-validate: update RHEL requirement for RHCS
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 9 Apr 2020 18:00:52 +0000 (14:00 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Apr 2020 18:43:22 +0000 (20:43 +0200)
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>
roles/ceph-validate/tasks/check_system.yml

index b459ab345cd94286465edcaf56a3aa7b376d465a..c12a8a7db087e09eb3e6fadd5ac3bbe566deacf2 100644 (file)
 - 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.2"
+      when: ansible_distribution_version | version_compare('8.2', '<')
 
     - name: subscription manager related tasks
       when: ceph_repository_type == 'cdn'