diff --git a/playbooks/openstack-hosts-setup.yml b/playbooks/openstack-hosts-setup.yml index 070837f617..cd4aef997f 100644 --- a/playbooks/openstack-hosts-setup.yml +++ b/playbooks/openstack-hosts-setup.yml @@ -22,10 +22,10 @@ - name: Check for a supported Operating System assert: that: - - ansible_distribution | lower == 'ubuntu' - ansible_distribution_release | lower == 'trusty' or - ansible_distribution_release | lower == 'xenial' - msg: "The only supported platforms for this release are Ubuntu 14.04 LTS (Trusty) and Ubuntu 16.04 LTS (Xenial)" + ansible_distribution_release | lower == 'xenial' or + "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}" == "redhat-7" + msg: "The only supported platforms for this release are Ubuntu 14.04 LTS (Trusty), Ubuntu 16.04 LTS (Xenial) and CentOS 7 (WIP)" roles: - role: "openstack_hosts" tags: