From 08134048cb9a85508042cabd9aa3a39849eca2be Mon Sep 17 00:00:00 2001 From: heqnx Date: Sun, 25 May 2025 20:46:38 +0300 Subject: added role for ssh port fwd user --- roles/ssh-port-fwd-user/handlers/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 roles/ssh-port-fwd-user/handlers/main.yaml (limited to 'roles/ssh-port-fwd-user/handlers/main.yaml') 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' -- cgit v1.2.3