[CORD-2127]
Change to use headnode_dns for the DNS name of the headnode

[CORD-2120]
Add onos-fabric DNS entry

Change-Id: I2c9b3c9e64fea9366b437621eb56d0ef79aa2c98
diff --git a/roles/xos-config-new-tosca/tasks/main.yml b/roles/xos-config-new-tosca/tasks/main.yml
index b2534dc..f254445 100644
--- a/roles/xos-config-new-tosca/tasks/main.yml
+++ b/roles/xos-config-new-tosca/tasks/main.yml
@@ -1,4 +1,4 @@
-
+---
 # Copyright 2017-present Open Networking Foundation
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,13 +13,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-
----
 # xos-config-new-tosca/tasks/main.yml
 
 - name: Configure XOS with profile specific TOSCA (new Engine)
   uri:
-    url: "http://{{headnode}}/xos-tosca/run"
+    url: "http://{{ xos_tosca_host }}/xos-tosca/run"
     method: POST
     headers:
       xos-username: "{{ xos_admin_user }}"