Fully block Server header

This commit is contained in:
Jake Howard
2023-12-16 21:57:19 +00:00
parent cfb498d7c6
commit 46eda36515
3 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,18 @@
when: ansible_os_family == 'Archlinux'
become: true
- name: Install nginx-mod-http-headers-more
package:
name: libnginx-mod-http-headers-more-filter
when: ansible_os_family != 'Archlinux'
become: true
- name: Install nginx-mod-http-headers-more on Arch
kewlfft.aur.aur:
name: nginx-mainline-mod-headers-more
when: ansible_os_family == 'Archlinux'
become: true
- name: Create config directories
file:
path: /etc/nginx/{{ item }}