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: I5f47dbb71cae8c61f1f814c1e9dfcb2d28e14b3f
This commit is contained in:
Jesse Pretorius 2017-05-16 11:57:09 +01:00
parent a1fbb19ddd
commit bb05f9cfe7
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -16,6 +16,7 @@
- name: Playbook for role testing
hosts: localhost
connection: local
become: true
roles:
- role: "rsyslog_server"
post_tasks: