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,21 @@
---
- name: restart ssh
ansible.builtin.systemd:
name: sshd
state: restarted
daemon_reload: true
listen: restart ssh service
# Tâches principales du durcissement serveur
- import_tasks: 01-update-system.yml
tags: [hardening, system-update]
- name: restart fail2ban
ansible.builtin.systemd:
name: fail2ban
state: restarted
daemon_reload: true
listen: restart fail2ban service
- import_tasks: 02-install-security-packages.yml
tags: [hardening, packages]
- name: reload ufw
community.general.ufw:
state: reloaded
listen: reload firewall
- import_tasks: 03-configure-ssh.yml
tags: [hardening, ssh]
- name: reload sysctl
ansible.builtin.command: sysctl -p
listen: reload sysctl settings
- import_tasks: 04-configure-firewall.yml
tags: [hardening, firewall]
when: firewall_enabled | default(true)
- import_tasks: 05-configure-fail2ban.yml
tags: [hardening, fail2ban]
when: fail2ban_enabled | default(true)
- import_tasks: 06-manage-ssh-keys.yml
tags: [hardening, ssh-keys]