summaryrefslogtreecommitdiffstats
path: root/controller/ansible_helpers/wait-for-ssh
blob: eb3880a3bfa99e70b6f1c39d649dc37dc6a0bcb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash -x

where="$1"

test -z "$where" && echo >&2 "no host specified" && exit 1

while [ 1 ]; do
    ssh -o StrictHostKeyChecking=no -q $where exit &>/dev/null && exit 0
done

exit 1