From 9328af7aa254477c13a321e21bff367843fc2e0f Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 2 May 2017 08:50:14 +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: I4d94dec6ad68159248007f6845c9e3e09c233bf1 --- tests/inventory | 2 +- tests/{test-vars.yml => os_cloudkitty-overrides.yml} | 0 tests/test-install-cloudkitty.yml | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename tests/{test-vars.yml => os_cloudkitty-overrides.yml} (100%) diff --git a/tests/inventory b/tests/inventory index 35885c4..80c435f 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,5 +1,5 @@ [all] -localhost ansible_become=True +localhost service1 ansible_host=10.100.100.2 ansible_become=True ansible_user=root openstack1 ansible_host=10.100.100.3 ansible_become=True ansible_user=root diff --git a/tests/test-vars.yml b/tests/os_cloudkitty-overrides.yml similarity index 100% rename from tests/test-vars.yml rename to tests/os_cloudkitty-overrides.yml diff --git a/tests/test-install-cloudkitty.yml b/tests/test-install-cloudkitty.yml index 7890026..c770708 100644 --- a/tests/test-install-cloudkitty.yml +++ b/tests/test-install-cloudkitty.yml @@ -16,6 +16,7 @@ - name: Playbook for role testing hosts: cloudkitty_all user: root + become: true gather_facts: true pre_tasks: - name: Ensure Rabbitmq vhost @@ -37,4 +38,3 @@ - role: "os_cloudkitty" vars_files: - common/test-vars.yml - - test-vars.yml