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

LMOD now comes from ubuntu repos. not self compiled

parent 39abc39c
No related branches found
No related tags found
1 merge request!293Ubuntu
...@@ -15,16 +15,7 @@ ...@@ -15,16 +15,7 @@
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: install lua debian - name: install lua debian
apt: name={{ item }} state=installed apt: name=lmod state=installed
with_items:
- lua5.2
- lua5.2
- lua-filesystem
- lua-bitop
- lua-posix
- liblua5.2-0
- liblua5.2-dev
- tcl
become: true become: true
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
...@@ -36,20 +27,21 @@ ...@@ -36,20 +27,21 @@
- name: Download LMOD - name: Download LMOD
get_url: get_url:
url=http://consistency0/src/Lmod-{{ lmod_version }}.tar.bz2 url=http://consistency0/src/Lmod-{{ lmod_version }}.tar.bz2
dest={{source_dir}}/Lmod-{{ lmod_version }}.tar.bz2 dest={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
mode=0444 mode=0444
when: not lmodstat.stat.exists when: ansible_os_family == 'RedHat' and not lmodstat.stat.exists
- name: Uncompress LMOD - name: Uncompress LMOD
unarchive: unarchive:
src={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2 src={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
dest={{ source_dir }} dest={{ source_dir }}
copy=no copy=no
creates={{source_dir}}/Lmod-{{ lmod_version }}/README creates={{ source_dir }}/Lmod-{{ lmod_version }}/README
when: not lmodstat.stat.exists when: ansible_os_family == 'RedHat' and not lmodstat.stat.exists
- name: Compile and install Lmod - name: Compile and install Lmod
shell: cd {{ source_dir }}/Lmod-{{ lmod_version }}; ./configure --prefix={{ soft_dir }} --with-mpathSearch=YES --with-caseIndependentSorting=YES && make install LUA_INCLUDE={{ lua_include }} shell: cd {{ source_dir }}/Lmod-{{ lmod_version }}; ./configure --prefix={{ soft_dir }} --with-mpathSearch=YES --with-caseIndependentSorting=YES && make install LUA_INCLUDE={{ lua_include }}
args: args:
creates: "{{ soft_dir }}/lmod/{{ lmod_version }}" creates: "{{ soft_dir }}/lmod/{{ lmod_version }}"
become: true become: true
when: ansible_os_family == 'RedHat'
\ No newline at end of file
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