2022-01-01 19:24:52 +01:00
|
|
|
---
|
|
|
|
- name: "Install Apache via apt"
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
state: present
|
|
|
|
name:
|
|
|
|
- apache2
|
|
|
|
|
|
|
|
# TODO: Felmasolni a templatelt konfigokat es bekapcsolni oket
|
|
|
|
|
|
|
|
- name: Enable and restart Apache2 daemon
|
|
|
|
service:
|
|
|
|
name: apache2
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|
2022-02-05 20:00:55 +01:00
|
|
|
|
|
|
|
- name: Allow http port via ufw
|
|
|
|
community.general.ufw:
|
|
|
|
rule: allow
|
|
|
|
port: http
|
|
|
|
|
|
|
|
- name: Allow https port via ufw
|
|
|
|
community.general.ufw:
|
|
|
|
rule: allow
|
|
|
|
port: https
|