create role fail2ban
This commit is contained in:
parent
1673c01d41
commit
e49e94e448
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue