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:
commit
2a2cf2d4ce
3 changed files with 27 additions and 0 deletions
3
roles/apache/files/gnu-tp.conf
Normal file
3
roles/apache/files/gnu-tp.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<IfModule headers_module>
|
||||||
|
Header Set X-Clacks-Overhead "GNU Terry Pratchett"
|
||||||
|
</IfModule>
|
6
roles/apache/handlers/main.yml
Normal file
6
roles/apache/handlers/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Handlers for role apache
|
||||||
|
---
|
||||||
|
- name: restart apache2
|
||||||
|
service:
|
||||||
|
name: apache2
|
||||||
|
state: restarted
|
|
@ -15,3 +15,21 @@
|
||||||
- headers
|
- headers
|
||||||
- proxy_http
|
- proxy_http
|
||||||
- proxy_wstunnel
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue