diff --git a/playbooks/functional/run.yaml b/playbooks/functional/run.yaml index 2946e57..e3f8545 100644 --- a/playbooks/functional/run.yaml +++ b/playbooks/functional/run.yaml @@ -8,7 +8,7 @@ - name: Get the Node Port command: > - kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services lodgeit + kubectl get -o jsonpath="{.spec.ports[0].nodePort}" services zuul-lodgeit register: nodePort - name: Get the Node IP @@ -17,12 +17,18 @@ 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" + + - name: Post the paste + command: > + a=$(curl -vv --silent -d "code=test&language=text&webpage=" http://{{ nodeIP.stdout }}:{{ nodePort.stdout }} 2>&1 |grep Location) + A="$(cut -d' ' -f3 <<<$a)" + echo $A + register: pasteUrl + + + - name: Get the paste + command: > + curl -I {{ pasteUrl.stdout }} + register: getPaste +