2020-11-24 18:30:46 +01:00
|
|
|
---
|
|
|
|
- name: Ensure Apache2 and modules are installed and up to date
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- apache2
|
2020-12-12 23:09:54 +01:00
|
|
|
state: present
|
2020-11-24 18:30:46 +01:00
|
|
|
|
2020-12-12 16:08:42 +01:00
|
|
|
- name: Ensure necessary modules are enabled
|
2020-11-24 18:30:46 +01:00
|
|
|
apache2_module:
|
2020-12-12 16:08:42 +01:00
|
|
|
name: "{{ item }}"
|
2020-11-24 18:30:46 +01:00
|
|
|
state: present
|
2020-12-12 16:08:42 +01:00
|
|
|
with_items:
|
|
|
|
- rewrite
|
|
|
|
- ssl
|
2022-07-04 16:17:43 +02:00
|
|
|
- headers
|
2022-07-04 23:26:34 +02:00
|
|
|
- proxy_http
|
|
|
|
- proxy_wstunnel
|
2022-11-18 17:47:28 +01:00
|
|
|
|
|
|
|
- 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
|