parent
c6cae71cd3
commit
04c68cd410
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