netz39-infra-ansible/roles/apache/tasks/main.yml

15 lines
278 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