noticket Changes from redeploy to new server
This commit is contained in:
12
ansible/roles/http/tasks/security.yml
Normal file
12
ansible/roles/http/tasks/security.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user