aboutsummaryrefslogtreecommitdiffstats
path: root/roles/ssh/templates/generate_dns.j2
blob: c8d5a44f3923c85bb0be5aa99abf9cd4a15cc092 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{% for host in groups["servers"] %}
{% set host = hostvars[host] %}

Match originalhost dcontroller exec "systemctl is-active wg-quick@{{ _i.dcontroller }}.service"
	HostName {{ host.ip.inbound }}
	Port {{ host.services.tcp.ssh }}

Match originalhost {{ host.ansible_host }}
	HostName {{ host.ip.outbound  }}
	Port {{ host.services.tcp.ssh }}
	User root

{% endfor %}
remember that computers suck.