mirror of
https://github.com/saltstack-formulas/apache-formula.git
synced 2025-04-17 10:10:26 +00:00
manage_security: fix file presence detection
Detect runtime, rather than before starting/installing anything.
This commit is contained in:
parent
da543013f4
commit
76f05dda8e
1 changed files with 1 additions and 2 deletions
|
@ -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') }}
|
||||
|
|
Loading…
Add table
Reference in a new issue