This commit is contained in:
Hrankin, Aleksandr (contracted)
2026-02-19 11:34:13 +00:00
commit f243f440c3
191 changed files with 6183 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
---
- name: validate fail2ban config
listen: "validate and restart fail2ban"
become: true
ansible.builtin.command: fail2ban-client -t
register: f2b_validate
changed_when: false
- name: restart fail2ban
listen: "validate and restart fail2ban"
become: true
ansible.builtin.systemd:
name: fail2ban
state: restarted