From c95aa3b09e503f18ad9d58b224e4398859223a04 Mon Sep 17 00:00:00 2001
From: Eesaan Atluri <atlurie@uab.edu>
Date: Mon, 21 Oct 2024 19:12:35 -0500
Subject: [PATCH] fix(build): Add ansible timeout for failing yum installs

Change the default timeout from 10 secs to 60 secs to accomodate the delay for slurm pkg yum install tasks after running ldap_config  role
Refer #125
---
 openstack-proxy/nodeimage.pkr.hcl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openstack-proxy/nodeimage.pkr.hcl b/openstack-proxy/nodeimage.pkr.hcl
index 7dbcbbfe..5927b83f 100644
--- a/openstack-proxy/nodeimage.pkr.hcl
+++ b/openstack-proxy/nodeimage.pkr.hcl
@@ -52,7 +52,7 @@ build {
     use_proxy        = false
     user             = var.ssh_username
     groups           = ["proxy"]
-    ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
+    ansible_env_vars = ["ANSIBLE_TIMEOUT=60", "ANSIBLE_HOST_KEY_CHECKING=False"]
     playbook_file    = "./CRI_XCBC/proxy.yaml"
   }
 }
-- 
GitLab