feat: improve firewall rule names

This commit is contained in:
Simon Cornet 2025-07-11 20:21:14 +02:00
commit b725e808dc

View file

@ -55,7 +55,7 @@
logging: "on" logging: "on"
# basic firewall rules # basic firewall rules
- name: "firewall - {{ item.name }}" - name: "firewall - add basic rules"
community.general.ufw: community.general.ufw:
rule: "allow" rule: "allow"
direction: "in" direction: "in"
@ -63,9 +63,11 @@
from_ip: "{{ item.from_ip }}" from_ip: "{{ item.from_ip }}"
to_port: "{{ item.to_port }}" to_port: "{{ item.to_port }}"
loop: "{{ __firewall_basic_rules }}" loop: "{{ __firewall_basic_rules }}"
loop_control:
label: "{{ item.name }}"
# host firewall rules # host firewall rules
- name: "firewall - {{ item.name }}" - name: "firewall - add host rules"
community.general.ufw: community.general.ufw:
rule: "allow" rule: "allow"
direction: "in" direction: "in"
@ -73,3 +75,5 @@
from_ip: "{{ item.from_ip }}" from_ip: "{{ item.from_ip }}"
to_port: "{{ item.to_port }}" to_port: "{{ item.to_port }}"
loop: "{{ __firewall_host_rules }}" loop: "{{ __firewall_host_rules }}"
loop_control:
label: "{{ item.name }}"