new version
Some checks failed
Ansible Minecraft CI/CD / Ansible Lint (push) Successful in 8s
Ansible Minecraft CI/CD / Syntax Check (push) Failing after 7s
Ansible Minecraft CI/CD / Deploy to Staging (push) Has been skipped
Ansible Minecraft CI/CD / Deploy to Production (push) Has been skipped

This commit is contained in:
2025-08-27 15:11:08 +02:00
parent 3e64946953
commit 8f0877cd53
105 changed files with 911 additions and 2540 deletions

View File

@@ -1,23 +1,9 @@
---
- name: Install fail2ban
ansible.builtin.apt:
name: fail2ban
state: present
when: ansible_os_family == "Debian"
- name: Configure fail2ban jail
- name: Configuration Fail2Ban
ansible.builtin.template:
src: fail2ban.jail.local.j2
dest: "{{ fail2ban_config_dir }}/jail.local"
src: fail2ban-jail.local.j2
dest: "{{ fail2ban_config_path }}"
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
notify: restart fail2ban