Faalkaart fixes
https://basisbeveiliging.nl/report/NL/cyber_non_profit/1720
This commit is contained in:
parent
ec1a3662f8
commit
5ae55c6c5b
8 changed files with 44 additions and 29 deletions
18
snippets/common-nginx.yaml
Normal file
18
snippets/common-nginx.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue