aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/knot-misc/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/knot-misc/handlers')
-rw-r--r--ansible/roles/knot-misc/handlers/fail2ban.yml4
-rw-r--r--ansible/roles/knot-misc/handlers/main.yml1
2 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/knot-misc/handlers/fail2ban.yml b/ansible/roles/knot-misc/handlers/fail2ban.yml
new file mode 100644
index 0000000..8340622
--- /dev/null
+++ b/ansible/roles/knot-misc/handlers/fail2ban.yml
@@ -0,0 +1,4 @@
+- name: restart fail2ban
+ service:
+ name: fail2ban
+ state: reloaded
diff --git a/ansible/roles/knot-misc/handlers/main.yml b/ansible/roles/knot-misc/handlers/main.yml
new file mode 100644
index 0000000..b4a5aca
--- /dev/null
+++ b/ansible/roles/knot-misc/handlers/main.yml
@@ -0,0 +1 @@
+- include: fail2ban.yml