From 1f0ab331cab3e9b2a845a3e008471e7d0dda9092 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 24 Oct 2023 09:47:34 +0300 Subject: sshd: restart sshd if the main config file has "Include" added Signed-off-by: Lars Wirzenius Sponsored-by: author --- roles/sshd/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/sshd/tasks/main.yml') diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml index 66f9103..1094e3c 100644 --- a/roles/sshd/tasks/main.yml +++ b/roles/sshd/tasks/main.yml @@ -15,6 +15,7 @@ regexp: "Include /etc/ssh/sshd_config.d" line: "Include /etc/ssh/sshd_config.d/*.conf" insertbefore: BOF + notify: sshd_restart - name: "Set SSH host identity" when: sshd_host_key is defined and sshd_host_cert is defined -- cgit v1.2.1