4a400fdf7a
The main.yml task already checks for the waf variable - adding an additional check in install-waf.yml is redundant
13 lines
365 B
YAML
13 lines
365 B
YAML
---
|
|
- name: "(Install: All OSs) Install NGINX Plus WAF Module"
|
|
package:
|
|
name: nginx-plus-module-modsecurity
|
|
state: present
|
|
|
|
- name: "(Setup: NGINX Plus) Load NGINX Plus WAF Module"
|
|
lineinfile:
|
|
path: /etc/nginx/nginx.conf
|
|
insertbefore: BOF
|
|
line: load_module modules/ngx_http_modsecurity_module.so;
|
|
notify: "(Handler: All OSs) Reload NGINX"
|