Travis file cleanup (#13)

* Adds inventory

* Fix interpreter

* connection
This commit is contained in:
Chris Houseknecht
2017-10-12 15:50:47 -04:00
committed by GitHub
parent c865c8c8c1
commit c73a245f90
3 changed files with 4 additions and 3 deletions

View File

@@ -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/

1
tests/inventory Normal file
View File

@@ -0,0 +1 @@
localhost ansible_connection=local

View File

@@ -1,7 +1,6 @@
---
- name: Load the modules
hosts: localhost
connection: local
hosts: all
gather_facts: no
vars:
os_kubeconfig: konfig.json