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

9 lines
197 B
YAML

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