2014-08-16 23:35:57 +02:00
|
|
|
---
|
2022-09-10 17:09:12 +02:00
|
|
|
# ansible.builtin.file: roles/common/handlers/main.yml
|
2014-08-16 23:35:57 +02:00
|
|
|
|
2015-08-22 23:01:17 +02:00
|
|
|
- name: reload sshd
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.systemd: name={{ sshd_service_name }} state=reloaded
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
- name: reload sysctl
|
|
|
|
command: sysctl -p /etc/sysctl.conf
|
2015-06-07 11:42:03 +02:00
|
|
|
|
2019-10-26 16:36:07 +02:00
|
|
|
- name: reload systemd
|
2022-09-10 21:33:19 +02:00
|
|
|
ansible.builtin.systemd: daemon_reload=true
|
2021-07-26 12:09:41 +02:00
|
|
|
|
2021-09-05 15:19:31 +02:00
|
|
|
- name: restart nftables
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.systemd: name=nftables state=restarted
|
2021-09-28 09:45:51 +02:00
|
|
|
|
|
|
|
# 2021-09-28: note to self to keep fail2ban at the end, as handlers are executed
|
|
|
|
# in the order they are defined, not in the order they are listed in the task's
|
|
|
|
# notify statement and we must restart fail2ban after updating the firewall.
|
|
|
|
- name: restart fail2ban
|
2022-09-10 17:09:12 +02:00
|
|
|
ansible.builtin.systemd: name=fail2ban state=restarted
|