From e6601b8c0c05c4315efed23f9020ecaefc587b39 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Thu, 27 Apr 2017 10:46:24 -0700 Subject: [PATCH] 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 --- tests/inventory | 2 +- tests/test.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/inventory b/tests/inventory index 30af1d0..eab343f 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,5 +1,5 @@ [all] -localhost ansible_connection=local ansible_become=True +localhost [haproxy_all] localhost diff --git a/tests/test.yml b/tests/test.yml index 5bfa135..3602302 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -16,6 +16,8 @@ - name: Playbook for role testing hosts: localhost connection: local + user: root + become: true roles: - role: "haproxy_server" vars_files: