From a2652864844d50c89f5ee7a826ba1bf49b7eaa1b Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 1 Mar 2016 17:45:32 -0500 Subject: [PATCH] Specific hostname for testing Current tests are using localhost, which is fine but may not be real world. Change-Id: Idb7816f342482bfe173debf9ff4a8a4fc4d15db0 Signed-off-by: Paul Belanger --- tests/inventory | 4 ++-- tests/test.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/inventory b/tests/inventory index df8b5f6..65db56b 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,2 +1,2 @@ -[all] -localhost ansible_connection=local +[test] +test01 ansible_host=localhost diff --git a/tests/test.yaml b/tests/test.yaml index ccbfb91..2956da2 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- hosts: localhost +- hosts: test become: yes vars: rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"