Alan Orth
68493beba3
No need to restart for a config change. Signed-off-by: Alan Orth <alan.orth@gmail.com>
15 lines
336 B
YAML
15 lines
336 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
|
|
service: name={{ sshd_service_name }} state=reloaded
|
|
|
|
- name: reload sysctl
|
|
command: sysctl -p /etc/sysctl.conf
|