ansible-personal/roles/common/handlers/main.yml

24 lines
525 B
YAML
Raw Normal View History

---
# file: roles/common/handlers/main.yml
- name: restart iptables
service: name=iptables state=restarted
- name: restart iptables-persistent
service: name=iptables-persistent state=restarted
- name: reload sshd
systemd: name={{ sshd_service_name }} state=reloaded
- name: reload sysctl
command: sysctl -p /etc/sysctl.conf
- name: restart firewalld
systemd: name=firewalld state=restarted
- name: restart fail2ban
systemd: name=fail2ban state=restarted
- name: reload systemd
systemd: daemon_reload=yes