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 @@
when: ansible_os_family == 'RedHat'
- name: install lua debian
apt: name={{ item }} state=installed
with_items:
- lua5.2
- lua5.2
- lua-filesystem
- lua-bitop
- lua-posix
- liblua5.2-0
- liblua5.2-dev
- tcl
apt: name=lmod state=installed
become: true
when: ansible_os_family == 'Debian'
......@@ -36,20 +27,21 @@
- name: Download LMOD
get_url:
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
when: not lmodstat.stat.exists
when: ansible_os_family == 'RedHat' and not lmodstat.stat.exists
- name: Uncompress LMOD
unarchive:
src={{ source_dir }}/Lmod-{{ lmod_version }}.tar.bz2
dest={{ source_dir }}
copy=no
creates={{source_dir}}/Lmod-{{ lmod_version }}/README
when: not lmodstat.stat.exists
creates={{ source_dir }}/Lmod-{{ lmod_version }}/README
when: ansible_os_family == 'RedHat' and not lmodstat.stat.exists
- 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 }}
args:
creates: "{{ soft_dir }}/lmod/{{ lmod_version }}"
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