aboutsummaryrefslogtreecommitdiff
path: root/roles/ssh-port-fwd-user/handlers/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ssh-port-fwd-user/handlers/main.yaml')
-rw-r--r--roles/ssh-port-fwd-user/handlers/main.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/ssh-port-fwd-user/handlers/main.yaml b/roles/ssh-port-fwd-user/handlers/main.yaml
new file mode 100644
index 0000000..8c5ef88
--- /dev/null
+++ b/roles/ssh-port-fwd-user/handlers/main.yaml
@@ -0,0 +1,6 @@
+- name: restart ssh
+ systemd:
+ name: ssh
+ state: restarted
+ enabled: true
+ when: ansible_facts['service_mgr'] == 'systemd'