15 lines
233 B
YAML
15 lines
233 B
YAML
---
|
|
- name: touch nginx logs, enable jail
|
|
become: true
|
|
file:
|
|
path: "/var/log/nginx/{{ item }}.log"
|
|
state: touch
|
|
mode: 0644
|
|
loop:
|
|
- access
|
|
- error
|
|
notify: restart_fail2ban
|
|
tags:
|
|
- http
|
|
- security
|