add handler to fail2ban restart service
This commit is contained in:
parent
6e65b9e8fc
commit
e177691baf
|
@ -0,0 +1,5 @@
|
|||
# restart fail2ban service to apply changes
|
||||
- name: Restart fail2ban
|
||||
service:
|
||||
name: "{{ fail2ban_daemon }}"
|
||||
state: restarted
|
|
@ -30,4 +30,5 @@
|
|||
group: root
|
||||
mode: '0644'
|
||||
backup: true
|
||||
notify: Restart fail2ban
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# vars file
|
||||
path_jail_local: /etc/fail2ban/jail.local
|
||||
fail2ban_daemon: fail2ban
|
Loading…
Reference in New Issue