style 💎: Fix indentation and variable registration in fail2ban.yml
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 13s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 5s

Refactored the YAML file to improve readability and ensure proper variable registration.
This commit is contained in:
2026-02-25 17:52:11 +01:00
parent 46cac8fc90
commit 734a9c031f

View File

@@ -123,7 +123,7 @@
[IPSET {{ f2b_ipset_name }}]
comment: Fail2Ban dynamic blacklist
create: false
register: ipset_change
register: ipset_change
notify: Reload pve firewall
# noqa risky-file-permissions
@@ -135,7 +135,7 @@
block: |
IN DROP -source +{{ f2b_ipset_name }}
create: false
register: rule_change
register: rule_change
notify: Reload pve firewall
# noqa risky-file-permissions