Please note that it is still necessary to manually add the SSH keys to the OpenWRT config.
35 lines
722 B
Django/Jinja
35 lines
722 B
Django/Jinja
# {{ ansible_managed }}
|
|
Host ssh.n39.eu
|
|
Hostname ssh.n39.eu
|
|
IdentityFile {{ setup_ssh_key }}
|
|
IdentitiesOnly yes
|
|
User {{ setup_ssh_logname }}
|
|
Port 22
|
|
|
|
{% for host in groups['location_space'] %}
|
|
Host {{ host }}
|
|
Hostname {{ host }}
|
|
IdentityFile {{ setup_ssh_key }}
|
|
IdentitiesOnly yes
|
|
User {{ setup_ssh_logname }}
|
|
ProxyJump ssh.n39.eu
|
|
Port 22
|
|
|
|
{% endfor %}
|
|
{% for host in groups['location_internet'] %}
|
|
Host {{ host }}
|
|
Hostname {{ host }}
|
|
IdentityFile {{ setup_ssh_key }}
|
|
IdentitiesOnly yes
|
|
User {{ setup_ssh_logname }}
|
|
Port 22
|
|
|
|
{% endfor %}
|
|
|
|
{# This is our router #}
|
|
Host rhodium.n39.eu
|
|
Hostname rhodium.n39.eu
|
|
IdentityFile {{ setup_ssh_key }}
|
|
User root
|
|
ProxyJump ssh.n39.eu
|
|
Port 22
|