diff --git a/main.tf b/main.tf index a1c9ddd6d9bd33d707796237b0584aa47d7729d6..e12d84374d82075d45c7a5aaa26d2274dce4ac41 100644 --- a/main.tf +++ b/main.tf @@ -136,11 +136,11 @@ resource "null_resource" "ops" { provisioner "remote-exec" { inline = [ # Git clone command to clone the repository to the root directory - "git clone https://github.com/jprorama/CRI_XCBC.git /" + "git clone https://github.com/jprorama/CRI_XCBC.git /", - 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