Helm charts for deploying LodgeIt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
635 B

- hosts: all
roles:
- role: helm-template
vars:
helm_release_name: lodgeit
helm_chart: ./chart
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"