From 195a7f474b7e838bb129fee4cff71c26c473f2a0 Mon Sep 17 00:00:00 2001 From: spmfox Date: Mon, 25 Aug 2025 13:08:13 -0400 Subject: adding rich rules for firewalld --- roles/host/tasks/firewall.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'roles/host/tasks/firewall.yml') diff --git a/roles/host/tasks/firewall.yml b/roles/host/tasks/firewall.yml index 35138ff..999f5b9 100644 --- a/roles/host/tasks/firewall.yml +++ b/roles/host/tasks/firewall.yml @@ -15,3 +15,12 @@ immediate: true loop: "{{ host_firewall.ports }}" when: host_firewall.ports is defined + +- name: Modify rich rules + ansible.posix.firewalld: + rich_rule: "{{ item.rule }}" + state: "{{ item.state }}" + permanent: true + immediate: true + loop: "{{ host_firewall.rich_rules }}" + when: host_firewall.rich_rules is defined -- cgit