noticket Changes from redeploy to new server

This commit is contained in:
Bastian de Byl
2020-10-07 22:46:13 -04:00
parent f2269a6671
commit 17dd1fc372
8 changed files with 44 additions and 17 deletions

View File

@@ -28,15 +28,6 @@
recurse: true
tags: http
- name: touch nginx logs, enable jail
become: true
file:
path: "/var/log/nginx/error.log"
state: file
mode: 0644
notify: restart_fail2ban
tags: http, security
- name: template nginx http sites-available
become: true
template:

View File

@@ -1,5 +1,6 @@
---
- import_tasks: deps.yml
- import_tasks: security.yml
- import_tasks: modsec.yml
- import_tasks: http.yml
- import_tasks: https.yml

View 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