From 0b37a140352193fcf3a3c0db624b2992014df5c9 Mon Sep 17 00:00:00 2001 From: Oleksandr Porunov Date: Tue, 28 Mar 2017 17:53:50 +0300 Subject: [PATCH] Fix: wsgi.conf file not found --- apache/mod_wsgi.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/mod_wsgi.sls b/apache/mod_wsgi.sls index 73f9251..9dd5743 100644 --- a/apache/mod_wsgi.sls +++ b/apache/mod_wsgi.sls @@ -9,7 +9,7 @@ mod_wsgi: - require: - pkg: apache -{% if grains.get('os_family') == 'RedHat' %} +{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %} /etc/httpd/conf.d/wsgi.conf: file.uncomment: - regex: LoadModule