18 lines
446 B
YAML
18 lines
446 B
YAML
---
|
|
|
|
- hosts: '{{ ip_addr }}'
|
|
become: yes
|
|
become_method: sudo
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
|
|
- name: "[CONFIG FAIL2BAN] Comprobando si es necesario configurar fail2ban "
|
|
debug:
|
|
msg: "No es necesario configurar fail2ban en la máquina"
|
|
when: fail2ban_enabled is not defined or not fail2ban_enabled
|
|
|
|
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
import_role:
|
|
name: config-fail2ban
|