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>
29 lines
624 B
YAML
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
|