From fcbe1eed384273cc711f6f2dd0b7ceef11206e24 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 13 Jun 2023 09:34:23 +0200 Subject: [PATCH] fw --- 01_vars.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/01_vars.yml b/01_vars.yml index 02f19bd..5d3bdd1 100644 --- a/01_vars.yml +++ b/01_vars.yml @@ -31,3 +31,19 @@ ansible.builtin.debug: msg: httpd is running when: httpd_status.state == "started" + + - name: Configure firewall + ansible.posix.firewalld: + zone: public + service: http + permanent: true + state: enabled + notify: Firewall reload + + handlers: + - name: Firewall reload + ansible.builtin.systemd: + name: firewalld + state: reloaded + +