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

9 lines
191 B
YAML

---
- name: Apply custom ufw rules
community.general.ufw:
rule: allow
port: "{{item.port}}"
proto: {{item.proto}}
interface: {{item.interface}}
with_items: "{{firewall}}"