Skip to content
Snippets Groups Projects
Commit da7e1a19 authored by Gin Tan's avatar Gin Tan
Browse files

Merge branch 'patchmodulecmd' into 'master'

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

See merge request hpc-team/ansible_cluster_in_a_box!266

Former-commit-id: 4ae763eb
parents 2cc3c4ad b5089600
No related branches found
No related tags found
No related merge requests found
...@@ -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