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

11 lines
221 B
YAML
Raw Normal View History

2022-04-16 17:47:49 +02:00
---
- name: Apply custom ufw rules
community.general.ufw:
rule: allow
2022-04-16 17:55:35 +02:00
direction: "in"
2022-04-16 17:47:49 +02:00
port: "{{item.port}}"
2022-04-16 17:52:08 +02:00
proto: "{{item.proto}}"
interface: "{{item.interface}}"
with_items: "{{ firewall }}"
2022-04-16 19:55:29 +02:00
...