Merge pull request #1919 from ceph/iscsi-check

common: fix rhel check
pull/1918/head
Sébastien Han 2017-09-19 12:10:10 +02:00 committed by GitHub
commit 87e2dae9d8
1 changed files with 2 additions and 2 deletions

View File

@ -75,13 +75,13 @@
fail: fail:
msg: "iSCSI gateways can only be deployed on Red Hat Enterprise Linux or CentOS" msg: "iSCSI gateways can only be deployed on Red Hat Enterprise Linux or CentOS"
when: when:
- ansible_distribution not in ['Red Hat Enterprise Linux', 'CentOS'] - ansible_distribution not in ['RedHat', 'CentOS']
- iscsi_gw_group_name in group_names - iscsi_gw_group_name in group_names
- name: fail on unsupported distribution version for iscsi gateways - name: fail on unsupported distribution version for iscsi gateways
fail: fail:
msg: "iSCSI gateways can only be deployed on Red Hat Enterprise Linux or CentOS >= 7.4" msg: "iSCSI gateways can only be deployed on Red Hat Enterprise Linux or CentOS >= 7.4"
when: when:
- ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'CentOS' - ansible_distribution in ['RedHat', 'CentOS']
- ansible_distribution_version < '7.4' - ansible_distribution_version < '7.4'
- iscsi_gw_group_name in group_names - iscsi_gw_group_name in group_names