From 50878bb950c4b56566369f696b90d85f6e8e3e84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 14 Apr 2022 22:07:02 +0200 Subject: [PATCH] switch around task order --- roles/webgateway/tasks/main.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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