summaryrefslogtreecommitdiff
path: root/roles/sshd/tasks/main.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2024-02-07 18:47:31 +0200
committerLars Wirzenius <liw@liw.fi>2024-02-07 18:47:31 +0200
commita4756fa456f484ed9ab187ea14affb2309817e2b (patch)
treebc0f60c2d159eea7c47b78a281b8cb25489df80f /roles/sshd/tasks/main.yml
parentd3104b18efa5ee5c16b4378301fea0d18a8a3c94 (diff)
downloaddebian-ansible-a4756fa456f484ed9ab187ea14affb2309817e2b.tar.gz
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 <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'roles/sshd/tasks/main.yml')
-rw-r--r--roles/sshd/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
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