ansible-role-nginx/tasks/modules/install-waf.yml
Alessandro Fael Garcia 4a400fdf7a Remove redundant check
The main.yml task already checks for the waf variable - adding an additional check in install-waf.yml is redundant
2018-02-22 12:12:53 -08:00

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"