From a4756fa456f484ed9ab187ea14affb2309817e2b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 7 Feb 2024 18:47:31 +0200 Subject: fix(sshd): flush handlers at the end of the role This means sshd will accept connections again, unless the config is broken. Signed-off-by: Lars Wirzenius Sponsored-by: author --- roles/sshd/tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/sshd/tasks/main.yml') diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml index 1094e3c..ff77c40 100644 --- a/roles/sshd/tasks/main.yml +++ b/roles/sshd/tasks/main.yml @@ -107,3 +107,6 @@ AuthorizedKeysFile none dest: /etc/ssh/sshd_config.d/authorized_keys.conf notify: sshd_restart + +- name: "Run handlers" + meta: flush_handlers -- cgit v1.2.1