netz39-infra-ansible/roles/apache/tasks/main.yml
Alexander Dahl 8b2ab7753d 🚨 Fix linter warnings of type 'name[casing]'
ansible-lint reads like this:

    name[casing]: All names should start with an uppercase letter.

While at it: Some task/handler names were slightly adapted to better
match what should be done.
2025-03-01 21:21:22 +01:00

35 lines
770 B
YAML

---
- name: Ensure Apache2 and modules are installed and up to date
apt:
name:
- apache2
state: present
- name: Ensure necessary modules are enabled
apache2_module:
name: "{{ item }}"
state: present
with_items:
- rewrite
- ssl
- 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