Closed egarza closed 5 months ago
https://github.com/gdevenyi/NeuroAnsible/blob/master/roles/science/tasks/modules.yml
/opt/quarantine
egarza@CAMUS:~$ ls /etc/profile.d
01-locale-fix.sh Z99-cloud-locale-test.sh apps-bin-path.sh gawk.csh lmod.sh zznvidia_modules.sh
Z97-byobu.sh Z99-cloudinit-warnings.sh bash_completion.sh gawk.sh update-motd.sh zzquarantine_path.sh
find /opt/quarantine/modulefiles
Here is the content:
egarza@CAMUS:~$ ls /opt/quarantine/modulefiles/
link-modules.sh
egarza@CAMUS:~$ cat /opt/quarantine/modulefiles/link-modules.sh
#!/bin/bash
set -euo pipefail
for file in ../software/*/*/module; do
#echo ${file}
mkdir -p $(basename $(dirname $(dirname ${file})))
ln -f --relative -s ${file} $(basename $(dirname $(dirname ${file})))/$(basename $(dirname ${file})).lua
done
Ok, so this was what I suspected, you did not have a complete successful run of the pipeline from beginning to end (this is indeed due to unstable network issues on your end, I've confirmed the error you're getting is something on your side). You got into a place where the link-modules.sh
handler never ran because the playbook errored out, and then it didn't get triggered to run again.
I will have to add explicit linking and drop the handler, I was hoping to avoid this some that the playbook is truly idempotent as ansible playbooks are supposed to be.
Your fix is.
cd /opt/quarantine/modulefiles && sudo bash link-modules.sh
now its working, thanks
Finished instalation with no fails, Ubuntu 24.04 WSL 2
It seemed to have install all tags, but there are almost no modules.