From 50b7894ade7ad77035a45b68b7a589b089a4dfe1 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 1 Mar 2016 19:12:55 -0500 Subject: [PATCH] Specific hostname for testing Current tests are using localhost, which is fine but may not be real world. Change-Id: Ia85c95c4c454e153e5bc70ddb0e0df9d3af98f16 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 01ecb55..f6a0f37 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,5 +1,5 @@ -[all] +[test] # NOTE(pabelanger): We should not be hard-coding jenkins here, since it limits # who can run this test. However, ansible 2.0 has broken ansible_user and it # now requires to be setup, otherwise it will return nil. -localhost ansible_user=jenkins +test01 ansible_host=localhost ansible_user=jenkins diff --git a/tests/test.yaml b/tests/test.yaml index e87fe0c..6b601c6 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 }}"