openstack-ansible-os_magnum/tests/test-install-haproxy.yml
Jimmy McCrory 830d94cd5f Fix role gate tests for Ansible 2.3
'ansible_become' defined as a host_var or in the inventory for a host
has a higher precedence than 'become' defined within a playbook.

In change Id5b76a87809f03951c954fc3d752419a673403f7, 'become' was
defined explicitly for each play running against localhost so
'ansible_become' should be removed from its host_vars.

Duplicate 'ansible_host' definitions have also been removed.

Change-Id: I069d2113832cf0fe49695c5424f56ed5dad8fee6
Depends-On: Iefe86bbebac49efb6a3a98b5e070ff11e7fb07b2
2017-04-24 10:56:30 -07:00

24 lines
789 B
YAML

---
# Copyright 2016, 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: Install haproxy
hosts: localhost
become: true
roles:
- role: "haproxy_server"
haproxy_service_configs: "{{ haproxy_default_services }}"
vars_files:
- magnum-test-vars.yml