diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-02-07 18:47:31 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-02-07 18:47:31 +0200 |
commit | a4756fa456f484ed9ab187ea14affb2309817e2b (patch) | |
tree | bc0f60c2d159eea7c47b78a281b8cb25489df80f | |
parent | d3104b18efa5ee5c16b4378301fea0d18a8a3c94 (diff) | |
download | debian-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
-rw-r--r-- | roles/sshd/tasks/main.yml | 3 |
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 |