From c28a1097e38a847d86def25d57b4788cb3769290 Mon Sep 17 00:00:00 2001 From: Oleksandr Porunov Date: Wed, 5 Apr 2017 09:46:48 +0300 Subject: [PATCH] Fix wsgi.conf uncomment for RedHat based OS --- apache/mod_wsgi.sls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache/mod_wsgi.sls b/apache/mod_wsgi.sls index 9dd5743..bda0274 100644 --- a/apache/mod_wsgi.sls +++ b/apache/mod_wsgi.sls @@ -9,10 +9,11 @@ mod_wsgi: - require: - pkg: apache -{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %} +{% if grains.get('os_family') == 'RedHat' %} /etc/httpd/conf.d/wsgi.conf: file.uncomment: - regex: LoadModule + - onlyif: test -f /etc/httpd/conf.d/wsgi.conf - require: - pkg: mod_wsgi {% endif %}