This repository has been archived on 2026-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
Set-OPS/roles/fail2ban_ssh/tasks/main.yml
Daniel Allaire ef39f4352f Decouplage moteur/instance Phase 1b : neutraliser la marque chezlepro
Les fichiers geres par les roles (99-chezlepro.conf, chezlepro_filter,
chezlepro-bind.conf, /etc/redis/chezlepro.conf...) et les 14 templates
correspondants passent a la marque neutre du moteur 'setops' (git mv +
references src/dest). Un loup ne deploie plus de fichiers marques chezlepro.

Coherence src <-> template verifiee, ansible-lint 0 echec, diff vide,
syntax-check des playbooks de groupes OK. READMEs laisses (exemples).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 09:03:04 -04:00

29 lines
624 B
YAML

---
- 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 Chezlepro
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