Scott Baker | 4683159 | 2016-06-20 17:32:04 -0700 | [diff] [blame] | 1 | --- |
| 2 | - hosts: 127.0.0.1 |
| 3 | connection: local |
Scott Baker | 4683159 | 2016-06-20 17:32:04 -0700 | [diff] [blame] | 4 | |
| 5 | tasks: |
Andy Bavier | efe9362 | 2016-06-27 11:41:09 -0400 | [diff] [blame] | 6 | - name: Add host entry for fabric |
Andy Bavier | 92e3e00 | 2016-06-28 14:30:39 -0400 | [diff] [blame^] | 7 | uri: |
| 8 | url: http://{{ rest_hostname }}:{{ rest_port }}/{{ rest_endpoint }} |
| 9 | method: POST |
| 10 | user: onos |
| 11 | password: rocks |
| 12 | body: "{{ '{{' }} lookup('file', '{{ files_dir }}/{{ rest_config.fn }}') {{ '}}' }}" |
| 13 | body_format: json |