-
Simon Michnowicz authored
renamed files so they are executed last in /etc/profile.d (Otherwise default module init routines overwrite changes)
Simon Michnowicz authoredrenamed files so they are executed last in /etc/profile.d (Otherwise default module init routines overwrite changes)
main.yml 1.25 KiB
---
- name: template lmod bash
template: src=lmod.sh.j2 dest=/etc/profile.d/lmod.sh
become: true
become_user: root
when: default_modules == "lmod"
- name: template lmod csh
template: src=lmod.csh.j2 dest=/etc/profile.d/lmod.csh
become: true
become_user: root
when: default_modules == "lmod"
- name: remove modulecmd bash
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/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/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/zz_modulecmd.csh
become: true
become_user: root
when: default_modules == "modulecmd"
- name: remove lmod bash
file: path=/etc/profile.d/lmod.sh state=absent
become: true
become_user: root
when: default_modules == "modulecmd"
- name: remove modulcmd csh
file: path=/etc/profile.d/lmod.csh state=absent
become: true
become_user: root
when: default_modules == "modulecmd"