Alan Orth
80df220602
I'm having problems with reload hanging on Debian 10 so I will just revert to the older behavior of restarting.
18 lines
405 B
YAML
18 lines
405 B
YAML
---
|
|
# 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
|