From c73a245f902f3522deebb9ddd5d6b69b77e306e6 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 12 Oct 2017 15:50:47 -0400 Subject: [PATCH] Travis file cleanup (#13) * Adds inventory * Fix interpreter * connection --- .travis.yml | 3 ++- tests/inventory | 1 + tests/test.yml | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 tests/inventory diff --git a/.travis.yml b/.travis.yml index 399f742b..242b891e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,9 +24,10 @@ install: - docker exec -it openshift cat /var/lib/origin/openshift.local.config/master/admin.kubeconfig >tests/konfig.json - printf '[defaults]\nroles_path=../' >ansible.cfg + - echo "localhost ansible_connection=local ansible_python_interpreter=$(which python)">tests/inventory script: - - ansible-playbook -vvv tests/test.yml + - ansible-playbook -i tests/inventory -vvv tests/test.yml notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 00000000..2302edae --- /dev/null +++ b/tests/inventory @@ -0,0 +1 @@ +localhost ansible_connection=local diff --git a/tests/test.yml b/tests/test.yml index 0c9c012c..46fcaf8d 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,7 +1,6 @@ --- - name: Load the modules - hosts: localhost - connection: local + hosts: all gather_facts: no vars: os_kubeconfig: konfig.json