add ufw role

This commit is contained in:
Sergey Malyuk
2025-12-11 10:28:32 +03:00
parent 41c7747d3b
commit 0b9ba8964f
17 changed files with 248 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Converge
hosts: all
vars:
custom_rules:
- port: 80
- port: 9080
src: "10.2.1.0/24"
- interface: eth0@if288
direction: in
comment: "Allow all incoming traffic on eth0@if288"
roles:
- role: genlab.ufw
disable_ipv6: true
limit_ssh: true
rules: "{{ custom_rules }}"