2014-08-16 23:35:57 +02:00
|
|
|
---
|
|
|
|
# file: roles/common/handlers/main.yml
|
|
|
|
|
2015-08-22 23:01:17 +02:00
|
|
|
- name: reload sshd
|
2017-11-02 17:55:20 +01:00
|
|
|
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-05 11:29:30 +02:00
|
|
|
- name: restart firewalld
|
|
|
|
systemd: name=firewalld state=restarted
|
2019-10-26 16:36:07 +02:00
|
|
|
|
|
|
|
- name: reload systemd
|
|
|
|
systemd: daemon_reload=yes
|
2021-07-26 12:09:41 +02:00
|
|
|
|
2021-09-05 15:19:31 +02:00
|
|
|
- name: restart nftables
|
2021-08-01 13:23:00 +02:00
|
|
|
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
|
|
|
|
systemd: name=fail2ban state=restarted
|