Set-OPS — moteur d'ecosystemes numeriques souverains (Alliance Boreale)

This commit is contained in:
Alliance Boreale 2026-06-24 20:17:46 -04:00
commit 3dd3f43ad8
308 changed files with 13649 additions and 0 deletions

View file

@ -0,0 +1,29 @@
---
- name: Installer fail2ban
ansible.builtin.apt:
name: fail2ban
state: present
- name: Créer le répertoire jail.d
ansible.builtin.file:
path: /etc/fail2ban/jail.d
state: directory
owner: root
group: root
mode: "0755"
- name: Déployer la jail SSH Set-OPS
ansible.builtin.template:
src: sshd-setops.local.j2
dest: /etc/fail2ban/jail.d/sshd-setops.local
owner: root
group: root
mode: "0644"
notify: Restart fail2ban
- name: Activer fail2ban
ansible.builtin.systemd:
name: fail2ban
enabled: true
state: started
when: fail2ban_ssh_enabled | bool