From c7a094c557b8766205bdefff22aed8e5b25d7cd3 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 16 May 2017 12:14:43 +0100 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: Id51a7882540a68e53ef00a26e910214a6df6ec9f --- tests/inventory | 3 ++- tests/test.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/inventory b/tests/inventory index 0ed0a20..68b2dac 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1 +1,2 @@ -localhost ansible_connection=local ansible_become=True +[all] +localhost diff --git a/tests/test.yml b/tests/test.yml index 49b8390..54e2e15 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -16,5 +16,6 @@ - name: Playbook for role testing hosts: localhost connection: local + become: true tasks: - debug: msg="Testing is still to be implemented"