diff options
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 |
