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"
|
||||
|
||||
# basic firewall rules
|
||||
- name: "firewall - {{ item.name }}"
|
||||
- name: "firewall - add basic rules"
|
||||
community.general.ufw:
|
||||
rule: "allow"
|
||||
direction: "in"
|
||||
|
|
@ -63,9 +63,11 @@
|
|||
from_ip: "{{ item.from_ip }}"
|
||||
to_port: "{{ item.to_port }}"
|
||||
loop: "{{ __firewall_basic_rules }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
|
||||
# host firewall rules
|
||||
- name: "firewall - {{ item.name }}"
|
||||
- name: "firewall - add host rules"
|
||||
community.general.ufw:
|
||||
rule: "allow"
|
||||
direction: "in"
|
||||
|
|
@ -73,3 +75,5 @@
|
|||
from_ip: "{{ item.from_ip }}"
|
||||
to_port: "{{ item.to_port }}"
|
||||
loop: "{{ __firewall_host_rules }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue