Merge pull request '🐢 Show some appreciation' (!122) from gnu-tp into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/122
Reviewed-by: dkdent <dkdent@netz39.de>
Reviewed-by: Alexander Dahl <alex@netz39.de>
This commit is contained in:
Stefan Haun 2022-11-22 19:56:49 +01:00
commit 2a2cf2d4ce
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<IfModule headers_module>
Header Set X-Clacks-Overhead "GNU Terry Pratchett"
</IfModule>

View file

@ -0,0 +1,6 @@
# Handlers for role apache
---
- name: restart apache2
service:
name: apache2
state: restarted

View file

@ -15,3 +15,21 @@
- headers
- proxy_http
- proxy_wstunnel
- name: Create configuration for GNU-TP header
ansible.builtin.copy:
src: files/gnu-tp.conf
dest: /etc/apache2/conf-available/gnu-tp.conf
mode: "0644"
owner: root
group: root
notify: restart apache2
- name: Add symlink to enable configuration
ansible.builtin.file:
src: ../conf-available/gnu-tp.conf
dest: /etc/apache2/conf-enabled/gnu-tp.conf
state: link
owner: root
group: root
notify: restart apache2