Scott Baker | 4683159 | 2016-06-20 17:32:04 -0700 | [diff] [blame^] | 1 | --- |
| 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 |