From d8d156b7b4859bc9b59bd6c3f5b6964f540699a9 Mon Sep 17 00:00:00 2001 From: handreas <andreas.hamacher@monash.edu> Date: Tue, 4 Feb 2020 09:11:20 +0000 Subject: [PATCH] LMOD now comes from ubuntu repos. not self compiled --- roles/lmod/tasks/main.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/roles/lmod/tasks/main.yml b/roles/lmod/tasks/main.yml index 951a1cdc..aa125741 100644 --- a/roles/lmod/tasks/main.yml +++ b/roles/lmod/tasks/main.yml @@ -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 -- GitLab