Set up a persistent tunnel (using autossh) in Debian-like systems (server side).
None
-
autossh_tunnel_server_user: [default:autossh]: The user that will accept theautosshconnection -
autossh_tunnel_server_group: [default:autossh]: The primary group of theautosshuser -
autossh_tunnel_server_groups: [default:[ssh_users]]: The secondary groups of theautosshuser -
autossh_tunnel_server_shell: [default:/bin/false]: The shell of theautosshuser -
autossh_tunnel_server_authorized_keys: [default:[]]: Authorized key declarations -
autossh_tunnel_server_authorized_keys.{n}.src: [required]: The local path of the key -
autossh_tunnel_server_authorized_keys.{n}.state: [optional, default:present]: State
None
ansible-autossh-tunnel-client(see)
---
- hosts: all
roles:
- oefenweb.autossh-tunnel-server
vars:
autossh_tunnel_server_groups:
- ssh_users
autossh_tunnel_server_authorized_keys:
- src: ../../../files/autossh-tunnel/etc/autossh/id_rsa.pubMIT
Mischa ter Smitten
Are welcome!