Mohammed Naser c4acf10e4e cleanup: move chart to charts/
This will allow us to run the CI properly.

Change-Id: I813607167ca0568dc06935676409251c2d947ba9
2020-03-28 21:19:40 -04:00

26 lines
645 B
YAML

- hosts: all
roles:
- role: helm-template
vars:
helm_release_name: lodgeit
helm_chart: ./charts/lodgeit
tasks:
- name: Get the Node Port
command: >
kubectl get svc/lodgeit -ojsonpath="http://{.spec.clusterIP}:{.spec.ports[0].port}"
register: _url
- name: Post the paste
uri:
url: "{{ _url.stdout }}"
follow_redirects: all
method: POST
body_format: form-urlencoded
body:
code: test
language: text
webpage: ""
return_content: true
register: _paste
failed_when: "'test' not in _paste.content"