From dbe64f66f7382f9cd4c6d8c49d407c75f6799646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Tue, 19 Sep 2017 11:55:26 +0200 Subject: [PATCH] common: fix rhel check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like Ansible is now using "RedHat" instead of "Red Hat Enterprise Linux" Signed-off-by: Sébastien Han --- roles/ceph-common/tasks/checks/check_system.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceph-common/tasks/checks/check_system.yml b/roles/ceph-common/tasks/checks/check_system.yml index 9d909a6fd..4098af0c4 100644 --- a/roles/ceph-common/tasks/checks/check_system.yml +++ b/roles/ceph-common/tasks/checks/check_system.yml @@ -71,13 +71,13 @@ fail: msg: "iSCSI gateways can only be deployed on Red Hat Enterprise Linux or CentOS" when: - - ansible_distribution not in ['Red Hat Enterprise Linux', 'CentOS'] + - ansible_distribution not in ['RedHat', 'CentOS'] - iscsi_gw_group_name in group_names - name: fail on unsupported distribution version for iscsi gateways fail: msg: "iSCSI gateways can only be deployed on Red Hat Enterprise Linux or CentOS >= 7.4" when: - - ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'CentOS' + - ansible_distribution in ['RedHat', 'CentOS'] - ansible_distribution_version < '7.4' - iscsi_gw_group_name in group_names