You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
471 B
16 lines
471 B
5 years ago
|
# {{ ansible_managed }}
|
||
|
{% if httpd_mod_security | default(True) %}
|
||
|
Include modsecurity.d/*.conf
|
||
|
Include modsecurity.d/activated_rules/*.conf
|
||
|
{% if httpd_mod_security | default(True) == 'audit' %}
|
||
|
SecRuleEngine DetectionOnly
|
||
|
{% elif httpd_mod_security | default(True) == True %}
|
||
|
SecRuleEngine On
|
||
|
{% else %}
|
||
|
SecRuleEngine Off
|
||
|
{% endif %}
|
||
|
{% for id in httpd_mod_security_disabled_rules | default(['960015', '981203']) %}
|
||
|
SecRuleRemoveById {{ id }}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|