Fix role gate tests for Ansible 2.3

Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.

Change-Id: I5a3e9d20a577209f3181054a5ee3ea84de1d1a39
This commit is contained in:
Jimmy McCrory 2017-04-27 10:46:24 -07:00
parent 24189581b3
commit e6601b8c0c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
[all]
localhost ansible_connection=local ansible_become=True
localhost
[haproxy_all]
localhost

View File

@ -16,6 +16,8 @@
- name: Playbook for role testing
hosts: localhost
connection: local
user: root
become: true
roles:
- role: "haproxy_server"
vars_files: