diff options
| author | spmfox <spmfox@foxwd.com> | 2025-08-25 13:08:13 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2025-08-25 13:08:13 -0400 |
| commit | 195a7f474b7e838bb129fee4cff71c26c473f2a0 (patch) | |
| tree | 759021d8099485ff577566f0651975f6359e2faf /roles/host/tasks/firewall.yml | |
| parent | 516f9c5e879314ac1d4921c1fc59e3d110ab1cab (diff) | |
adding rich rules for firewalld
Diffstat (limited to 'roles/host/tasks/firewall.yml')
| -rw-r--r-- | roles/host/tasks/firewall.yml | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
