blob: 58bccbaba06a4420dd8c54391e056f7ad2352a29 [file] [log] [blame]
Scott Baker46831592016-06-20 17:32:04 -07001---
2- hosts: 127.0.0.1
3 connection: local
4 vars:
5 rest_hostname: {{ rest_hostname }}
6 rest_port: {{ rest_port }}
7 rest_endpoint: {{ rest_endpoint }}
8 rest_json: '{{ rest_json }}'
9
10 tasks:
11 - debug: var=rest_json
12
13 - name: Call Fabric REST API
14 uri:
15 url: http://{{ '{{' }} rest_hostname {{ '}}' }}:{{ '{{' }} rest_port {{ '}}' }}/{{ '{{' }} rest_endpoint {{ '}}' }} #http://localhost:8181/onos/v1/network/configuration/
16 body: "{{ '{{' }} rest_json {{ '}}' }}"
17 body_format: raw
18 method: POST
19 user: karaf
20 password: karaf