diff options
author | heqnx <root@heqnx.com> | 2025-05-24 16:06:06 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-24 16:06:06 +0300 |
commit | 2ccb5034924a75aac483f1060ae5d0d1a0293569 (patch) | |
tree | ac19c69e34b0fbb56b5f1f9abc9696f8537c199c /attackbox/handlers | |
parent | 007be4c334fdd072ff5c058f68c7b373c3ddf7b7 (diff) | |
download | ansible-playbooks-2ccb5034924a75aac483f1060ae5d0d1a0293569.tar.gz ansible-playbooks-2ccb5034924a75aac483f1060ae5d0d1a0293569.zip |
added fail2ban, sshd verbose logging, more handlers
Diffstat (limited to 'attackbox/handlers')
-rw-r--r-- | attackbox/handlers/main.yaml | 26 |
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' |