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

15 lines
249 B
YAML

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