diff --git a/main.tf b/main.tf
index e371076e6b143f1416251eef6cc9e6c3036955e1..74e7bedd3f55d7070b3b5996364ce41bfcb613cb 100644
--- a/main.tf
+++ b/main.tf
@@ -150,12 +150,18 @@ resource "null_resource" "ops" {
   }
   # moves CRI_XCBC file into directory made above
 
+provisioner "remote-exec" {
+    inline = [
+      "sed -i -E 's/(ServerName ).*/\\1xdmod.${module.create-ohpc-instance.ssh_host}.nip.io/' /etc/httpd/conf.d/xdmod.conf",
+   ]
+  }
+
   # compute node registration on ohpc
   provisioner "remote-exec" {
     inline = [
-      "sed -i -E 's/(ServerName ).*/\\1xdmod.${module.create-ohpc-instance.ssh_host}.nip.io/' /etc/httpd/conf.d/xdmod.conf",
-      for node, net in module.nodes.network:
-    "ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e  \"{'cod_deploy':'false', 'compute_nodes':[{'name':'${node}', 'ip':'${net[0].fixed_ip_v4}', 'mac':'${net[0].mac}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}\" /CRI_XCBC/site-ops.yaml -b -v"]
+     for node, net in module.nodes.network:
+    "ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e  \"{'cod_deploy':'false', 'compute_nodes':[{'name':'${node}', 'ip':'${net[0].fixed_ip_v4}', 'mac':'${net[0].mac}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}\" /CRI_XCBC/site-ops.yaml -b -v"
+    ]
   }
 
   # ood node