Skip to content
Snippets Groups Projects
Commit 5bb27ab0 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

fixing modules on debian

parent a59e7f57
No related branches found
No related tags found
2 merge requests!310Gpu2,!304Gpu
......@@ -3,7 +3,7 @@
- name: make sure environment modules are installed
package:
name: environment-modules
state: installed
state: present
become: true
- name: template lmod bash
......@@ -30,6 +30,9 @@
become_user: root
when: default_modules == "lmod"
# vars:
# MODULESHOMEvar: '/usr/share/modules'
- name: template modulecmd bash
template: src=modulecmd.sh.j2 dest=/etc/profile.d/modulecmd.sh
become: true
......@@ -59,3 +62,14 @@
become: true
become_user: root
when: default_modules == "modulecmd"
- name: Create a symbolic link
file:
src: /usr/share/modules
dest: /usr/share/Modules
owner: root
group: root
state: link
mode: u=rwx,g=rx,o=rx
become: true
when: ansible_os_family == 'Debian' and default_modules == 'modulecmd'
\ No newline at end of file
......@@ -2,7 +2,7 @@
- include_vars: "{{ ansible_os_family }}.yml"
- name: install lua centos
yum: name={{ item }} state=installed update_cache=yes
yum: name={{ item }} state=present update_cache=yes
with_items:
- lua
- lua-filesystem
......@@ -15,7 +15,7 @@
when: ansible_os_family == 'RedHat'
- name: install lua RHEL7
yum: name={{ item }} state=installed update_cache=yes enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
yum: name={{ item }} state=present update_cache=yes enablerepo="Monash_University_EPEL7_EPEL_7_-_x86_64"
with_items:
- lua
- lua-filesystem
......@@ -30,7 +30,7 @@
become: true
- name: install lua debian
apt: name=lmod state=installed
apt: name=lmod state=present
become: true
when: ansible_os_family == 'Debian'
......
......@@ -14,7 +14,7 @@
args:
dest: /usr/share/Modules/init/.modulespath
line: /usr/local/Modules/modulefiles
ignore_errors: true
ignore_errors: false
become: true
when: ansible_os_family == 'RedHat'
......@@ -24,6 +24,6 @@
args:
dest: /usr/share/modules/init/.modulespath
line: /usr/local/Modules/modulefiles
ignore_errors: true
ignore_errors: false
become: true
when: ansible_os_family == 'Debian'
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