diff --git a/roles/lmod/tasks/main.yml b/roles/lmod/tasks/main.yml
index 951a1cdcb93f00c291a6a203820587dc7939369b..aa125741b5100de826e83da01318b0580ab518fa 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