aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-02-02 11:42:47 +0100
committerbinary <me@rgoncalves.se>2021-02-02 11:42:47 +0100
commita61cf16328bb9ba4b4a9989f74fcfb538ab6fa37 (patch)
treecc9510314596766aa2fde07a9dec5b9924bb7a98
parent4a33686063aa236bc2217cce4c55e2ae463a7408 (diff)
downloadold-infrastructure-a61cf16328bb9ba4b4a9989f74fcfb538ab6fa37.tar.gz
-W is not supported on non gnu-coreutils systems
-rw-r--r--roles/sshdns/templates/generate_dns.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/sshdns/templates/generate_dns.j2 b/roles/sshdns/templates/generate_dns.j2
index a509677..a521104 100644
--- a/roles/sshdns/templates/generate_dns.j2
+++ b/roles/sshdns/templates/generate_dns.j2
@@ -11,7 +11,7 @@
{##}
# {{ h.ansible_host }}
-Match originalhost {{ h.ansible_host }} exec "ping -c 1 -W 5 {{ dcontroller.ip.in }} && ! ping -c 1 -W 5 {{ h.ip.out }}"
+Match originalhost {{ h.ansible_host }} exec "ping -c 1 -W 5 {{ dcontroller.ip.in }} && ! ping -c 1 -w 5 {{ h.ip.out }}"
HostName {{ h.ip.in }}
Port {{ _port }}
remember that computers suck.