From 6e2856cbdc9b87207585339e4f28a67834f2b5d4 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 2 Mar 2016 11:52:26 -0500 Subject: [PATCH] Specific hostname for testing Current tests are using localhost, which is fine but may not be real world. Change-Id: Icec60ea4e15f591001752c4262b1b55a26c9fb9b 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 3db786c..5c57f3d 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 vars: rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"