From b419094cda74405eb4cbb8b7031b53cd2f347566 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 12 Nov 2020 14:29:49 +0100 Subject: Refactor and cleanup old roles --- roles/ssh/templates/generate_dns.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/ssh/templates/generate_dns.j2') diff --git a/roles/ssh/templates/generate_dns.j2 b/roles/ssh/templates/generate_dns.j2 index 58dc6d6..5d58ae9 100644 --- a/roles/ssh/templates/generate_dns.j2 +++ b/roles/ssh/templates/generate_dns.j2 @@ -10,7 +10,7 @@ {##} # {{ h.ansible_host }} -Match originalhost {{ h.ansible_host }} exec "systemctl is-active wg-quick@{{ _i.dcontroller }}.service" +Match originalhost {{ h.ansible_host }} exec "ls /sys/class/net/{{ _i.dcontroller }} && ! ping -c 1 -W 5 {{ h.ip.out }}" HostName {{ h.ip.in }} Port {{ _port }} -- cgit v1.2.3