Skip to content
Snippets Groups Projects
Commit 4899cae5 authored by Philip Chan's avatar Philip Chan
Browse files

inject a patchmodulecmd.sh into /etc/profile, filename must lexicographically...

inject a patchmodulecmd.sh into /etc/profile, filename must lexicographically > modules.sh for this to work
parent 6db3d47f
No related branches found
No related tags found
1 merge request!266inject a patchmodulecmd.sh into /etc/profile, filename must lexicographically...
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
become_user: root become_user: root
when: default_modules == "modulecmd" when: default_modules == "modulecmd"
- name: template patchmodulecmd bash
template: src=patchmodulecmd.sh.j2 dest=/etc/profile.d/patchmodulecmd.sh.j2
become: true
become_user: root
when: default_modules == "modulecmd"
- name: template modulecmd csh - name: template modulecmd csh
template: src=modulecmd.csh.j2 dest=/etc/profile.d/modulecmd.csh template: src=modulecmd.csh.j2 dest=/etc/profile.d/modulecmd.csh
become: true become: true
......
module() { eval `/usr/bin/modulecmd bash $*`; /usr/local/bin/modulelog $*;}
export -f module
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment