25 lines
635 B
YAML
25 lines
635 B
YAML
- 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" |