fixed modsecurity not turning on
This commit is contained in:
@@ -99,9 +99,9 @@
|
|||||||
- name: activate mod-security
|
- name: activate mod-security
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/nginx/modsecurity.conf
|
path: "{{ nginx_path }}/etc/modsecurity.conf"
|
||||||
regexp: "{{ item.regex }}"
|
regexp: "{{ item.regex }}"
|
||||||
line: "{{ item.line }}"
|
line: "{{ item.line }}"
|
||||||
loop: "{{ modsec_conf_replaces }} "
|
loop: "{{ modsec_conf_replaces }} "
|
||||||
notify: restart_nginx
|
notify: restart nginx
|
||||||
tags: modsec
|
tags: modsec
|
||||||
|
|||||||
Reference in New Issue
Block a user