feat: improve firewall rule names
This commit is contained in:
parent
7be3d30496
commit
b725e808dc
1 changed files with 6 additions and 2 deletions
|
|
@ -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 }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue