vm-ansible/roles/webgateway/tasks/main.yaml

26 lines
464 B
YAML

---
- 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
- 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