Commit 4ce86229 authored by nono's avatar nono 💻
Browse files

Fix the block

parent 43775150
......@@ -24,24 +24,26 @@
notify:
- Relance de fail2ban
block:
- name: Ajout des filtres keycloak en plus
template:
src: fail2ban/filter.keycloak.conf
dest: /etc/fail2ban/filter.d/keycloak.conf
owner: root
group: root
mode: 0644
notify:
- Relance de fail2ban
- name: Installation des filtres et prison en plus
block:
- name: Filtres keycloak
template:
src: fail2ban/filter.keycloak.conf
dest: /etc/fail2ban/filter.d/keycloak.conf
owner: root
group: root
mode: 0644
notify:
- Relance de fail2ban
- name: Ajout des prisons keycloak en plus
template:
src: fail2ban/jail.keycloak.conf.j2
dest: /etc/fail2ban/jail.d/keycloak.conf
owner: root
group: root
mode: 0644
notify:
- Relance de fail2ban
when: ansible_facts["nodename"] == "keycloak"
- name: Prisons keycloak
template:
src: fail2ban/jail.keycloak.conf.j2
dest: /etc/fail2ban/jail.d/keycloak.conf
owner: root
group: root
mode: 0644
notify:
- Relance de fail2ban
when: ansible_facts["nodename"] == "keycloak"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment