2014-08-26 18:08:15 -05:00
|
|
|
---
|
|
|
|
# Copyright 2014, Rackspace US, Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2015-02-14 10:06:50 -06:00
|
|
|
- name: Basic host setup
|
2016-01-18 10:09:17 -06:00
|
|
|
hosts: "{{ openstack_host_group|default('hosts') }}"
|
2016-06-10 13:47:01 +01:00
|
|
|
gather_facts: "{{ gather_facts | default(True) }}"
|
2015-02-14 10:06:50 -06:00
|
|
|
max_fail_percentage: 20
|
2014-08-26 18:08:15 -05:00
|
|
|
user: root
|
2016-11-01 10:07:27 +00:00
|
|
|
pre_tasks:
|
|
|
|
- name: Check for a supported Operating System
|
|
|
|
assert:
|
|
|
|
that:
|
2016-12-08 10:27:47 +00:00
|
|
|
- (ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'xenial') or
|
|
|
|
(ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7')
|
|
|
|
msg: "The only supported platforms for this release are Ubuntu 16.04 LTS (Xenial) and CentOS 7 (WIP)"
|
2014-08-26 18:08:15 -05:00
|
|
|
roles:
|
2016-07-19 14:00:35 -05:00
|
|
|
- role: "openstack_hosts"
|
|
|
|
tags:
|
|
|
|
- openstack-hosts
|