mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Disable server tokens
This commit is contained in:
@@ -7,5 +7,10 @@
|
||||
community.general.ufw:
|
||||
name: Nginx Full
|
||||
rule: allow
|
||||
- name: Disable server tokens
|
||||
ansible.builtin.lineinfile:
|
||||
search_string: "# server_tokens off;"
|
||||
path: /etc/nginx/nginx.conf
|
||||
line: "server_tokens off;"
|
||||
- name: Prepare for Let's Encrypt
|
||||
ansible.builtin.import_tasks: letsencrypt.yaml
|
||||
|
||||
Reference in New Issue
Block a user