vm-ansible/roles/customfirewall/tasks/main.yaml

9 lines
191 B
YAML
Raw Normal View History

2022-04-16 17:47:49 +02:00
---
- name: Apply custom ufw rules
community.general.ufw:
rule: allow
port: "{{item.port}}"
proto: {{item.proto}}
interface: {{item.interface}}
with_items: "{{firewall}}"