From 6b316ebfa80b5f1045e7d19380a89b484c85642b Mon Sep 17 00:00:00 2001 From: Krish Moodbidri <krish94@uab.edu> Date: Mon, 26 Feb 2024 19:17:36 -0600 Subject: [PATCH] feat-test-if ansible-can be run in user_data --- ohpc-instance/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf index 0da561d..dbfe038 100644 --- a/ohpc-instance/main.tf +++ b/ohpc-instance/main.tf @@ -52,7 +52,7 @@ resource "openstack_compute_instance_v2" "ohpc" { # Run Ansible playbook runcmd: - - ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e "{'cod_deploy':'false', 'compute_nodes':[{'name':'${var.ohpc_instance_name}', 'ip':'${var.internal_ip}', 'mac':'${mac_address}', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}" /CRI_XCBC/site-ops.yaml -b -v + - ansible-playbook -c local /CRI_XCBC/site-ops.yaml -b -v EOF # defines the networks of the instance -- GitLab