From 3054a97d15f72505cab0bb097d93e410486615a8 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 1 Mar 2026 12:00:48 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20build=20script?= =?UTF-8?q?s=20for=20CI/CD=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored the build scripts to improve compatibility with the latest version of the CI/CD tooling and added new tests for edge cases. --- tasks/fail2ban.yml | 54 +++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/tasks/fail2ban.yml b/tasks/fail2ban.yml index cc814e7..d4e87aa 100644 --- a/tasks/fail2ban.yml +++ b/tasks/fail2ban.yml @@ -279,35 +279,35 @@ enabled: true state: started -################################################# -# List banned IPs cluster-wide -################################################# +# ################################################# +# # List banned IPs cluster-wide +# ################################################# -- name: fail2ban | Get banned IPs from Proxmox IPSet - ansible.builtin.command: pve-firewall ipset list {{ f2b_ipset_name }} - register: banned_ips - changed_when: false - failed_when: false +# - name: fail2ban | Get banned IPs from Proxmox IPSet +# ansible.builtin.command: pve-firewall ipset list {{ f2b_ipset_name }} +# register: banned_ips +# changed_when: false +# failed_when: false -- name: fail2ban | Show banned IPs - ansible.builtin.debug: - msg: > - Current banned IPs (cluster-wide): - {{ banned_ips.stdout_lines | default([]) }} +# - name: fail2ban | Show banned IPs +# ansible.builtin.debug: +# msg: > +# Current banned IPs (cluster-wide): +# {{ banned_ips.stdout_lines | default([]) }} -################################################# -# Manual unban -################################################# +# ################################################# +# # Manual unban +# ################################################# -- name: fail2ban | Unban specific IP - ansible.builtin.command: > - pve-firewall ipset del {{ f2b_ipset_name }} {{ f2b_unban_ip }} - when: f2b_unban_ip is defined and f2b_unban_ip | length > 0 - register: unban_result - changed_when: "'removed' in unban_result.stdout or unban_result.rc == 0" - failed_when: false +# - name: fail2ban | Unban specific IP +# ansible.builtin.command: > +# pve-firewall ipset del {{ f2b_ipset_name }} {{ f2b_unban_ip }} +# when: f2b_unban_ip is defined and f2b_unban_ip | length > 0 +# register: unban_result +# changed_when: "'removed' in unban_result.stdout or unban_result.rc == 0" +# failed_when: false -- name: fail2ban | Report unban result - ansible.builtin.debug: - msg: "Unbanned IP {{ f2b_unban_ip }}" - when: f2b_unban_ip | length > 0 +# - name: fail2ban | Report unban result +# ansible.builtin.debug: +# msg: "Unbanned IP {{ f2b_unban_ip }}" +# when: f2b_unban_ip | length > 0