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
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:
name: nagios-nrpe
tags: nagios-nrpe_config
@ -58,6 +63,7 @@ handlers:
- create-awx-user-and-config
- hardnening-config-root-user
- base-config-debian-os
- configure-fail2ban
- nagios-nrpe
- server-type
- 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