From b49a8327597b83227592b1ba873d2a4ba695647d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 9 May 2019 22:36:20 +0200 Subject: [PATCH] nginx/application: Added rules for firewall --- roles/nginx/application/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/nginx/application/tasks/main.yml b/roles/nginx/application/tasks/main.yml index 3af5375..345b7d9 100644 --- a/roles/nginx/application/tasks/main.yml +++ b/roles/nginx/application/tasks/main.yml @@ -46,4 +46,13 @@ dest: "{{ nginx_installation_directory }}/nginx.conf" notify: reload nginx +- name: Allow port {{ item }} for http in firewall + ufw: + rule: allow + port: "{{ item }}" + proto: tcp + with_items: + - 80 + - 443 + # TODO Configure global log