lodgeit-helm/playbooks/functional/run.yaml

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"