mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-07 21:42:38 +00:00
Travis file cleanup (#13)
* Adds inventory * Fix interpreter * connection
This commit is contained in:
committed by
GitHub
parent
c865c8c8c1
commit
c73a245f90
@@ -24,9 +24,10 @@ install:
|
|||||||
- docker exec -it openshift cat /var/lib/origin/openshift.local.config/master/admin.kubeconfig >tests/konfig.json
|
- docker exec -it openshift cat /var/lib/origin/openshift.local.config/master/admin.kubeconfig >tests/konfig.json
|
||||||
|
|
||||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||||
|
- echo "localhost ansible_connection=local ansible_python_interpreter=$(which python)">tests/inventory
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -vvv tests/test.yml
|
- ansible-playbook -i tests/inventory -vvv tests/test.yml
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||||
|
|||||||
1
tests/inventory
Normal file
1
tests/inventory
Normal file
@@ -0,0 +1 @@
|
|||||||
|
localhost ansible_connection=local
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Load the modules
|
- name: Load the modules
|
||||||
hosts: localhost
|
hosts: all
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
vars:
|
vars:
|
||||||
os_kubeconfig: konfig.json
|
os_kubeconfig: konfig.json
|
||||||
|
|||||||
Reference in New Issue
Block a user