Skip to content
Snippets Groups Projects
Commit 623884eb authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'modifyloggingscript' into 'master'

Modifyloggingscript

Rename files placed in /etc/profile.d so they are called last upon login (otherwise module() command is overwritten by original module scripts)

See merge request !99
parents dc5e14ec 7ba0e06a
No related branches found
No related tags found
1 merge request!99Modifyloggingscript
......@@ -13,25 +13,25 @@
when: default_modules == "lmod"
- name: remove modulecmd bash
file: path=/etc/profile.d/modulecmd.sh state=absent
file: path=/etc/profile.d/zz_modulecmd.sh state=absent
become: true
become_user: root
when: default_modules == "lmod"
- name: remove modulcmd csh
file: path=/etc/profile.d/modulecmd.csh state=absent
file: path=/etc/profile.d/zz_modulecmd.csh state=absent
become: true
become_user: root
when: default_modules == "lmod"
- name: template modulecmd bash
template: src=modulecmd.sh.j2 dest=/etc/profile.d/modulecmd.sh
template: src=modulecmd.sh.j2 dest=/etc/profile.d/zz_modulecmd.sh
become: true
become_user: root
when: default_modules == "modulecmd"
- name: template modulecmd csh
template: src=modulecmd.csh.j2 dest=/etc/profile.d/modulecmd.csh
template: src=modulecmd.csh.j2 dest=/etc/profile.d/zz_modulecmd.csh
become: true
become_user: root
when: default_modules == "modulecmd"
......
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