vm-ansible/roles/customfirewall/tasks/main.yaml
2022-04-16 17:55:35 +02:00

10 lines
217 B
YAML

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