blob: 4bfd7896d13b53888b5cc6906132f850e38a6441 [file] [log] [blame]
Scott Baker46831592016-06-20 17:32:04 -07001---
2- hosts: 127.0.0.1
3 connection: local
Scott Baker46831592016-06-20 17:32:04 -07004
5 tasks:
Andy Bavierefe93622016-06-27 11:41:09 -04006 - name: Add host entry for fabric
Andy Bavier92e3e002016-06-28 14:30:39 -04007 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