From 0239e09f8e0496e9f8a7863671e5b1d8a6b4424c Mon Sep 17 00:00:00 2001
From: Eesaan Atluri <atlurie@uab.edu>
Date: Thu, 22 Jun 2023 15:07:16 -0500
Subject: [PATCH] Specify default modules for root and normal user.

The def modules are specified in group_vars/all but here we overwrite
them by putting them in group_vars/compute. This is done in this way
because the default values we specify in group_vars/all is for COD
deploys, we don't want to break the cod deploy by changing this value so
we take advantage of variable precedence
---
 ansible/group_vars/compute | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ansible/group_vars/compute b/ansible/group_vars/compute
index eb73c7f1..f9a72e64 100644
--- a/ansible/group_vars/compute
+++ b/ansible/group_vars/compute
@@ -1,4 +1,6 @@
 ---
+  lmod_root_default_modules: ["shared", "cmd", "cmsh", "cluster-tools", "slurm"]
+  lmod_default_modules: ["shared", "slurm", "rc-base"]
   yum_repo_files:
     - TurboVNC.repo
     - cm.repo
-- 
GitLab