From 3f06056058d16f8c5b7da0be5ad2e0303d3ecf2d Mon Sep 17 00:00:00 2001
From: Simon Michnowicz <simon.michnowicz@monash.edu>
Date: Thu, 19 Nov 2015 18:02:02 +1100
Subject: [PATCH] Added a "redhat" dependency so code is not called for Debian

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

diff --git a/roles/modulefiles/tasks/main.yml b/roles/modulefiles/tasks/main.yml
index 2107057..38a3a8c 100644
--- a/roles/modulefiles/tasks/main.yml
+++ b/roles/modulefiles/tasks/main.yml
@@ -16,6 +16,7 @@
     line: /usr/local/Modules/modulefiles
   ignore_errors: true
   sudo: true
+  when: ansible_os_family == 'RedHat'
 
 # for some reason ubuntu uses lowercase modules
 - name: add /usr/local/Modules to the module file path
-- 
GitLab