From 7c8ed923df3c02338dfbf826fd6fd9a23dac502e Mon Sep 17 00:00:00 2001 From: heqnx Date: Sun, 25 May 2025 11:50:46 +0300 Subject: moved unorganized playbooks into old folder --- old/attackbox/handlers/main.yaml | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 old/attackbox/handlers/main.yaml (limited to 'old/attackbox/handlers') diff --git a/old/attackbox/handlers/main.yaml b/old/attackbox/handlers/main.yaml new file mode 100644 index 0000000..d0c15e9 --- /dev/null +++ b/old/attackbox/handlers/main.yaml @@ -0,0 +1,49 @@ +- name: update grub + command: update-grub + +- name: reload fail2ban + command: fail2ban-client reload + +- name: enable ufw + ufw: + state: enabled + policy: deny + +- name: restart ufw + systemd: + name: ufw + state: restarted + enabled: true + when: ansible_facts['service_mgr'] == 'systemd' + +- name: reload systemd + command: systemctl daemon-reload + when: ansible_facts['service_mgr'] == 'systemd' + +- name: restart ssh + systemd: + name: ssh + state: restarted + enabled: true + when: ansible_facts['service_mgr'] == 'systemd' + +- name: enable unattended-upgrades service + systemd: + name: unattended-upgrades + 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: restart tor + systemd: + name: tor + state: restarted + enabled: true + when: ansible_facts['service_mgr'] == 'systemd' -- cgit v1.2.3