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
This commit is contained in:
parent
6d79217a31
commit
830d94cd5f
@ -13,7 +13,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_host: 10.1.1.101
|
||||
ansible_host: 10.1.1.101
|
||||
ansible_become: True
|
||||
ansible_user: root
|
||||
|
@ -13,10 +13,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_become: True
|
||||
ansible_connection: local
|
||||
ansible_host: 10.1.1.1
|
||||
ansible_host: 10.1.1.1
|
||||
neutron_local_ip: 10.1.2.1
|
||||
ansible_python_interpreter: "/usr/bin/python2"
|
||||
bridges:
|
||||
|
@ -13,7 +13,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
ansible_host: 10.1.1.102
|
||||
ansible_host: 10.1.1.102
|
||||
ansible_become: True
|
||||
ansible_user: root
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
- name: Install haproxy
|
||||
hosts: localhost
|
||||
become: true
|
||||
roles:
|
||||
- role: "haproxy_server"
|
||||
haproxy_service_configs: "{{ haproxy_default_services }}"
|
||||
|
Loading…
Reference in New Issue
Block a user