add handler to fail2ban restart service

This commit is contained in:
Ruben Blanco 2023-10-20 09:51:22 +02:00
parent 6e65b9e8fc
commit e177691baf
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# restart fail2ban service to apply changes
- name: Restart fail2ban
service:
name: "{{ fail2ban_daemon }}"
state: restarted

View File

@ -30,4 +30,5 @@
group: root
mode: '0644'
backup: true
notify: Restart fail2ban
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View File

@ -1,2 +1,3 @@
# vars file
path_jail_local: /etc/fail2ban/jail.local
fail2ban_daemon: fail2ban