aboutsummaryrefslogtreecommitdiff
path: root/roles/ssh-port-fwd-user/handlers/main.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-25 20:46:38 +0300
committerheqnx <root@heqnx.com>2025-05-25 20:46:38 +0300
commit08134048cb9a85508042cabd9aa3a39849eca2be (patch)
tree2fb4e83f49e2dab108280e76bdaf20036fe81bdb /roles/ssh-port-fwd-user/handlers/main.yaml
parent419478997ce7d61d56ffbfb0d0148784b1e7727c (diff)
downloadansible-playbooks-08134048cb9a85508042cabd9aa3a39849eca2be.tar.gz
ansible-playbooks-08134048cb9a85508042cabd9aa3a39849eca2be.zip
added role for ssh port fwd userHEADmain
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'