aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/sshd/handlers
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-09-22 10:07:20 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-09-22 11:14:27 +0200
commit6431483d6f1642e57c1e3d00ade5cf72910b7894 (patch)
tree484f0aa379ccb65a7296deda6c350b8156aa7708 /roles/sshd/handlers
parentjournald: move service restart to handlers (diff)
downloadinfra-ansible-6431483d6f1642e57c1e3d00ade5cf72910b7894.tar.gz
infra-ansible-6431483d6f1642e57c1e3d00ade5cf72910b7894.zip
sshd: move service restart to handlers
Diffstat (limited to 'roles/sshd/handlers')
-rw-r--r--roles/sshd/handlers/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/sshd/handlers/main.yml b/roles/sshd/handlers/main.yml
new file mode 100644
index 0000000..09355a9
--- /dev/null
+++ b/roles/sshd/handlers/main.yml
@@ -0,0 +1,6 @@
+- name: Restart sshd
+ become: true
+ ansible.builtin.systemd_service:
+ name: sshd
+ state: restarted
+ listen: sshd_restart