check new version
Some checks failed
Ansible Minecraft Server CI/CD / lint (push) Failing after 21s
Ansible Minecraft Server CI/CD / test (push) Has been skipped
Ansible Minecraft Server CI/CD / deploy (push) Has been skipped

This commit is contained in:
2025-08-27 07:59:19 +02:00
parent 7a2ccb537b
commit 9ea9ac7254
125 changed files with 2696 additions and 1511 deletions

View File

@@ -0,0 +1,23 @@
---
- name: Install fail2ban
ansible.builtin.apt:
name: fail2ban
state: present
when: ansible_os_family == "Debian"
- name: Configure fail2ban jail
ansible.builtin.template:
src: fail2ban.jail.local.j2
dest: "{{ fail2ban_config_dir }}/jail.local"
owner: root
group: root
mode: '0644'
backup: yes
notify: restart fail2ban service
- name: Ensure fail2ban is started and enabled
ansible.builtin.systemd:
name: fail2ban
state: started
enabled: yes
daemon_reload: yes