lodgeit-helm/playbooks/functional/run.yaml

29 lines
698 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 -o jsonpath="{.spec.ports[0].nodePort}" services lodgeit
register: nodePort
- name: Get the Node IP
command: >
kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}"
register: nodeIP
- name: post to lodget
uri:
url: http://{{ nodeIP.stdout }}:{{ nodePort.stdout }}
method: POST
body: "{{ lookup('file','mesos-consul.json') }}"
body_format: json
headers:
Content-Type: "application/json"