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 }}"