add conditional

This commit is contained in:
Ruben Blanco 2024-02-15 17:17:50 +01:00
parent eb9751aa7a
commit 9b0ff1ca8f
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@
# Install and configure FAIL2BAN
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: "[CONFIG FAIL2BAN] Comprobando si es necesario configurar fail2ban "
meta: end_host
when: fail2ban_enabled is not defined or not fail2ban_enabled
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# comprobe if fail2ban is installed if not then install fail2ban
# Gather the package facts