custom firewall solution
This commit is contained in:
8
roles/customfirewall/tasks/main.yaml
Normal file
8
roles/customfirewall/tasks/main.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Apply custom ufw rules
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: "{{item.port}}"
|
||||
proto: {{item.proto}}
|
||||
interface: {{item.interface}}
|
||||
with_items: "{{firewall}}"
|
Reference in New Issue
Block a user