openstack-ansible/tests/test-vars-overrides.yml
melissaml e60cbcdf15 fix typos in documentation
Change-Id: I8aad7184df1249cd0caaf8ec40b0f7872556670d
2018-04-23 12:47:56 +08:00

49 lines
1.4 KiB
YAML

---
# Copyright 2017, 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.
- name: Ensuring group vars
hosts: "hosts"
gather_facts: no
connection: local
user: root
tasks:
- name: Ensuring existing group vars are well applied
assert:
that:
- "openstack_release is defined"
- name: Ensuring babar is well defined
assert:
that:
- "babar == 'elephant'"
- name: Ensuring lxc_hosts_package_state is well overridden
assert:
that:
- "lxc_hosts_package_state == 'present'"
- name: Ensuring host vars
hosts: localhost
gather_facts: no
connection: local
user: root
tasks:
- name: Ensuring tintin has milou
assert:
that:
- "tintin == 'milou'"
- name: Ensuring security_package_state is overridden
assert:
that:
- "security_package_state == 'present'"