Merge pull request #229 from ze42/manage_security_file_presence

manage_security: fix file presence detection
This commit is contained in:
Javier Bértoli 2018-06-27 14:29:09 -03:00 committed by GitHub
commit 4e73a80b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,9 +19,8 @@ include:
{% if grains['os_family']=="Debian" %}
{% if salt['file.file_exists' ]('/etc/apache2/conf-available/security.conf') %}
{{ security_config('/etc/apache2/conf-available/security.conf') }}
{% endif %}
- onlyif: test -f '/etc/apache2/conf-available/security.conf'
{% elif grains['os_family']=="FreeBSD" %}
{{ security_config(apache.confdir+'/security.conf') }}