2018-01-19 19:27:47 +01:00
|
|
|
---
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: All OSs) Install NGINX Plus WAF Module"
|
2018-01-19 19:27:47 +01:00
|
|
|
package:
|
2020-04-18 00:40:35 +02:00
|
|
|
name: "nginx-plus-module-modsecurity{{ nginx_version | default('') }}"
|
2018-01-19 19:27:47 +01:00
|
|
|
state: present
|
|
|
|
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Setup: NGINX Plus) Load NGINX Plus WAF Module"
|
2018-01-19 19:27:47 +01:00
|
|
|
lineinfile:
|
|
|
|
path: /etc/nginx/nginx.conf
|
|
|
|
insertbefore: BOF
|
|
|
|
line: load_module modules/ngx_http_modsecurity_module.so;
|
2020-08-19 18:39:17 +02:00
|
|
|
when: not nginx_main_template_enable | bool
|
2018-01-26 20:00:26 +01:00
|
|
|
notify: "(Handler: All OSs) Reload NGINX"
|