aboutsummaryrefslogtreecommitdiff
path: root/roles/harden/handlers/main.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-29 19:34:32 +0300
committerheqnx <root@heqnx.com>2025-05-29 19:34:32 +0300
commitb8f1d76bd38d03e68fbc51f8e7340a9963a4104d (patch)
tree1cf7347b862e4c6059463ea6b811f44a0d37c41c /roles/harden/handlers/main.yaml
parent0e9c8dc71a87b86a9d99c82b5f9aaa37dffeb9bd (diff)
downloadansible-playbooks-b8f1d76bd38d03e68fbc51f8e7340a9963a4104d.tar.gz
ansible-playbooks-b8f1d76bd38d03e68fbc51f8e7340a9963a4104d.zip
removed handlers, need to run all the time
Diffstat (limited to 'roles/harden/handlers/main.yaml')
-rw-r--r--roles/harden/handlers/main.yaml38
1 files changed, 0 insertions, 38 deletions
diff --git a/roles/harden/handlers/main.yaml b/roles/harden/handlers/main.yaml
deleted file mode 100644
index e25c78f..0000000
--- a/roles/harden/handlers/main.yaml
+++ /dev/null
@@ -1,38 +0,0 @@
-- 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: restart ssh
- systemd:
- name: ssh
- state: restarted
- enabled: true
- when: ansible_facts['service_mgr'] == 'systemd'
-
-- name: restart unattended-upgrades
- 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'