Simplify
diff --git a/xos/onboard/fabric/synchronizer/steps/sync_host.yaml b/xos/onboard/fabric/synchronizer/steps/sync_host.yaml
index 58bccba..44a43f1 100644
--- a/xos/onboard/fabric/synchronizer/steps/sync_host.yaml
+++ b/xos/onboard/fabric/synchronizer/steps/sync_host.yaml
@@ -1,20 +1,8 @@
---
- hosts: 127.0.0.1
connection: local
- vars:
- rest_hostname: {{ rest_hostname }}
- rest_port: {{ rest_port }}
- rest_endpoint: {{ rest_endpoint }}
- rest_json: '{{ rest_json }}'
tasks:
- - debug: var=rest_json
-
+ # Couldn't figure out how to get uri module to accept JSON in a string
- name: Call Fabric REST API
- uri:
- url: http://{{ '{{' }} rest_hostname {{ '}}' }}:{{ '{{' }} rest_port {{ '}}' }}/{{ '{{' }} rest_endpoint {{ '}}' }} #http://localhost:8181/onos/v1/network/configuration/
- body: "{{ '{{' }} rest_json {{ '}}' }}"
- body_format: raw
- method: POST
- user: karaf
- password: karaf
+ command: curl -sS --user onos:rocks -X POST -HContent-Type:application/json -d '{{ rest_json }}' http://{{ rest_hostname }}:{{ rest_port }}/{{ rest_endpoint }}