Merge pull request '🔧 Clarify naming of ssh jump host groups' (!136) from alex/netz39-infra-ansible:reorganize_groups into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/136
Reviewed-by: dkdent <dkdent@netz39.de>
Reviewed-by: Stefan Haun <tux@netz39.de>
This commit is contained in:
Alexander Dahl 2023-01-10 06:19:19 +01:00
commit 755f655551
2 changed files with 5 additions and 5 deletions

View file

@ -28,7 +28,7 @@ all:
pottwal.n39.eu: pottwal.n39.eu:
radon.n39.eu: radon.n39.eu:
unicorn.n39.eu: unicorn.n39.eu:
ssh_jump: location_space:
hosts: hosts:
beaker.n39.eu: beaker.n39.eu:
hobbes.n39.eu: hobbes.n39.eu:
@ -40,6 +40,6 @@ all:
radon.n39.eu: radon.n39.eu:
wittgenstein.n39.eu: wittgenstein.n39.eu:
unicorn.n39.eu: unicorn.n39.eu:
ssh_no_jump: location_internet:
hosts: hosts:
tau.netz39.de: tau.netz39.de:

View file

@ -6,7 +6,7 @@ Host ssh.n39.eu
User {{ setup_ssh_logname }} User {{ setup_ssh_logname }}
Port 22 Port 22
{% for host in groups['ssh_jump'] %} {% for host in groups['location_space'] %}
Host {{ host }} Host {{ host }}
Hostname {{ host }} Hostname {{ host }}
IdentityFile {{ setup_ssh_key }} IdentityFile {{ setup_ssh_key }}
@ -16,7 +16,7 @@ Host {{ host }}
Port 22 Port 22
{% endfor %} {% endfor %}
{% for host in groups['ssh_no_jump'] %} {% for host in groups['location_internet'] %}
Host {{ host }} Host {{ host }}
Hostname {{ host }} Hostname {{ host }}
IdentityFile {{ setup_ssh_key }} IdentityFile {{ setup_ssh_key }}