From 68493beba38e2789df664a57238054164e5562a7 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 23 Aug 2015 00:01:17 +0300 Subject: [PATCH] roles/common: Reload sshd instead of restarting No need to restart for a config change. Signed-off-by: Alan Orth --- roles/common/handlers/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index f90def7..5d48c07 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -7,8 +7,8 @@ - name: restart iptables-persistent service: name=iptables-persistent state=restarted -- name: restart sshd - service: name={{ sshd_service_name }} state=restarted +- name: reload sshd + service: name={{ sshd_service_name }} state=reloaded - name: reload sysctl command: sysctl -p /etc/sysctl.conf