From 8ecf958568b74f3ba5278a768d62ea8481dbcd4d Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 2 May 2017 10:49:57 +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: I7eb8275699d418848b0991c5ba232ae0b9ffb42e --- tests/inventory | 2 +- tests/test.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/inventory b/tests/inventory index 6c0833a..68b2dac 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,2 +1,2 @@ [all] -localhost ansible_connection=local ansible_become=True +localhost diff --git a/tests/test.yml b/tests/test.yml index 0a7aef9..f07354c 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -16,5 +16,7 @@ - name: Playbook for role testing hosts: localhost connection: local + user: root + become: true roles: - role: "ceph_client"