From b95c3a30adfc7c32c2bfec87e436cdfb19a8475c Mon Sep 17 00:00:00 2001
From: Chris Hines <chris.hines@monash.edu>
Date: Mon, 23 Feb 2015 06:00:48 +0000
Subject: [PATCH] install environment-modules from distribution

---
 roles/modulefiles/tasks/main.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/roles/modulefiles/tasks/main.yml b/roles/modulefiles/tasks/main.yml
index 9325b28..84ae26e 100644
--- a/roles/modulefiles/tasks/main.yml
+++ b/roles/modulefiles/tasks/main.yml
@@ -1,4 +1,14 @@
 ---
+- name: install environment-modules
+  yum: name=environment-modules state=installed
+  sudo: true
+  when: ansible_os_family == 'RedHat'
+
+- name: install environment-modules
+  apt: name=environment-modules state=installed
+  sudo: true
+  when: ansible_os_family == 'Debian'
+
 - name: add /usr/local/Modules to the module file path
   lineinfile: 
   args:
-- 
GitLab