summaryrefslogtreecommitdiffstats
path: root/roles/ssh/handlers
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:32:01 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:32:01 +0200
commitc89c0b2d8af32d6f3f4f2b42efc6a9511fa4aefc (patch)
tree43c4e64ec450e05787fa35906d2ec4327b4df09c /roles/ssh/handlers
parentb9b0620b988870525b9972b537b8e22a0c6499af (diff)
Add ssh role
Diffstat (limited to 'roles/ssh/handlers')
-rw-r--r--roles/ssh/handlers/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/ssh/handlers/main.yml b/roles/ssh/handlers/main.yml
new file mode 100644
index 00000000..a73aca7e
--- /dev/null
+++ b/roles/ssh/handlers/main.yml
@@ -0,0 +1,13 @@
+---
+- name: "Reload systemd"
+ become: true
+ ansible.builtin.systemd_service:
+ daemon_reload: true
+ when: not ansible_is_chroot
+
+- name: "Restart ssh"
+ become: true
+ ansible.builtin.systemd_service:
+ name: "{{ ssh_service_name }}"
+ state: "restarted"
+ when: not ansible_is_chroot