aboutsummaryrefslogtreecommitdiff
path: root/attackbox/handlers/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'attackbox/handlers/main.yaml')
-rw-r--r--attackbox/handlers/main.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/attackbox/handlers/main.yaml b/attackbox/handlers/main.yaml
new file mode 100644
index 0000000..1e18521
--- /dev/null
+++ b/attackbox/handlers/main.yaml
@@ -0,0 +1,26 @@
+- name: update grub
+ command: update-grub
+
+- name: restart ssh
+ systemd:
+ name: ssh
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'
+
+- name: restart fail2ban
+ systemd:
+ name: fail2ban
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'
+
+- name: reload fail2ban
+ command: fail2ban-client reload
+
+- name: restart tor
+ systemd:
+ name: tor
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'