From 23df8f219bcff04f25b98a787b8e7e2dab2cf5ff Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 25 Apr 2017 14:54:56 +0100 Subject: [PATCH] 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. Change-Id: Ieb55a10e8148b0eb122caccf92702d24ff1a1d0b Cc: Jimmy McCrory --- tests/inventory | 2 +- tests/test.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/inventory b/tests/inventory index 6c0833a9..df8b5f69 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,2 +1,2 @@ [all] -localhost ansible_connection=local ansible_become=True +localhost ansible_connection=local diff --git a/tests/test.yml b/tests/test.yml index 32011abc..6d317f54 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -16,6 +16,7 @@ - name: Playbook for role testing hosts: localhost connection: local + become: true pre_tasks: - name: Show host facts debug: