diff options
author | heqnx <root@heqnx.com> | 2025-05-25 20:46:38 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-25 20:46:38 +0300 |
commit | 08134048cb9a85508042cabd9aa3a39849eca2be (patch) | |
tree | 2fb4e83f49e2dab108280e76bdaf20036fe81bdb /roles/ssh-port-fwd-user/handlers/main.yaml | |
parent | 419478997ce7d61d56ffbfb0d0148784b1e7727c (diff) | |
download | ansible-playbooks-08134048cb9a85508042cabd9aa3a39849eca2be.tar.gz ansible-playbooks-08134048cb9a85508042cabd9aa3a39849eca2be.zip |
Diffstat (limited to 'roles/ssh-port-fwd-user/handlers/main.yaml')
-rw-r--r-- | roles/ssh-port-fwd-user/handlers/main.yaml | 6 |
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' |