Files
deploy_home/ansible/roles/http/tasks/security.yml
2022-04-12 01:15:51 -04:00

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