Faalkaart fixes

https://basisbeveiliging.nl/report/NL/cyber_non_profit/1720
This commit is contained in:
polyfloyd 2024-06-04 18:50:16 +02:00
parent ec1a3662f8
commit 5ae55c6c5b
8 changed files with 44 additions and 29 deletions

View file

@ -0,0 +1,18 @@
---
- name: Install nginx
apt:
name: nginx
state: present
- name: Disable nginx server_tokens
lineinfile:
path: /etc/nginx/nginx.conf
line: "\tserver_tokens off;"
regexp: "server_tokens"
notify: reload nginx
- name: Clear default nginx site
file:
state: absent
path: /etc/nginx/sites-enabled/default
notify: reload nginx