create role fail2ban

This commit is contained in:
Ruben Blanco 2023-10-17 15:10:41 +02:00
parent 1673c01d41
commit e49e94e448
2 changed files with 19 additions and 1 deletions

View File

@ -22,7 +22,12 @@
name: base-config-debian-os name: base-config-debian-os
tags: base-os_config tags: base-os_config
- name: "[NAGIOS NRPE] Install and configure nagios nrpe" - name: "[FAIL2BAN CONFIG] Install and configure fail2ban service"
import_role:
name: configure-fail2ban
tags: fail2ban-config_config
- name: "[NAGIOS NRPE] Install and configure nagios nrpe service"
import_role: import_role:
name: nagios-nrpe name: nagios-nrpe
tags: nagios-nrpe_config tags: nagios-nrpe_config
@ -58,6 +63,7 @@ handlers:
- create-awx-user-and-config - create-awx-user-and-config
- hardnening-config-root-user - hardnening-config-root-user
- base-config-debian-os - base-config-debian-os
- configure-fail2ban
- nagios-nrpe - nagios-nrpe
- server-type - server-type
- add-repos-vn - add-repos-vn

View File

@ -0,0 +1,12 @@
---
- hosts: "{{ ip_addr }}"
become: yes
become_method: sudo
gather_facts: no
tasks:
- name: "[FAIL2BAN CONFIG] Install and configure fail2ban service"
import_role:
name: configure-fail2ban