From 1aa1f442aa70161a1b30fdc672d576ab75c8e536 Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Fri, 14 Oct 2022 13:43:05 +1100
Subject: [PATCH] symlinker should be run once per play to avoid starting slurm
 without the symlinks being generated

---
 roles/lustre-symlinks/tasks/main.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/roles/lustre-symlinks/tasks/main.yml b/roles/lustre-symlinks/tasks/main.yml
index f5f5a11e..d3fd1941 100644
--- a/roles/lustre-symlinks/tasks/main.yml
+++ b/roles/lustre-symlinks/tasks/main.yml
@@ -27,4 +27,10 @@
     user: root
   with_items:
     "{{ lustre_storage_types }}"
-  become: true
\ No newline at end of file
+  become: true
+
+- name: run symlinker job manually once
+  shell: "/opt/symlinker/symlinker-{{ item }}.sh"
+  with_items:
+    "{{ lustre_storage_types }}"
+  become: true
-- 
GitLab