summaryrefslogtreecommitdiff
path: root/roles/sshd/tasks/main.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-24 09:47:34 +0300
committerLars Wirzenius <liw@liw.fi>2023-10-24 09:47:34 +0300
commit1f0ab331cab3e9b2a845a3e008471e7d0dda9092 (patch)
tree43a981244d4f170ee46e37b28be744390fe4a3b6 /roles/sshd/tasks/main.yml
parent51ef630383066affa720a52989bf0ee151822385 (diff)
downloaddebian-ansible-1f0ab331cab3e9b2a845a3e008471e7d0dda9092.tar.gz
sshd: restart sshd if the main config file has "Include" added
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'roles/sshd/tasks/main.yml')
-rw-r--r--roles/sshd/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
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