diff --git a/roles/webgateway/tasks/main.yaml b/roles/webgateway/tasks/main.yaml index e8cf0fd..fff3965 100644 --- a/roles/webgateway/tasks/main.yaml +++ b/roles/webgateway/tasks/main.yaml @@ -8,6 +8,16 @@ - python3-certbot - python3-certbot-nginx +- 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 + - name: Enable and restart nginx daemon service: name: nginx @@ -88,13 +98,3 @@ service: name: nginx state: reloaded - -- 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