mirror of https://github.com/ceph/ceph-ansible.git
common: fix rhel check
Looks like Ansible is now using "RedHat" instead of "Red Hat Enterprise Linux" Signed-off-by: Sébastien Han <seb@redhat.com>pull/1919/head
parent
66d41f342d
commit
dbe64f66f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue