fix: log a reason for possible ssh failure
This commit is contained in:
1 parent
13b8194321
commit
e7f9355747
1 file changed
+1
-1
+1
-1
@@ -287,7 +287,7 @@ verify_ansible_hosts() {
|
|||||||
if ssh -q -o BatchMode=yes -o ConnectTimeout=5 "${!node_username}"@"${!var}" "true"; then
|
if ssh -q -o BatchMode=yes -o ConnectTimeout=5 "${!node_username}"@"${!var}" "true"; then
|
||||||
_log "INFO" "Successfully SSH'ed into host '${!var}' with username '${!node_username}'"
|
_log "INFO" "Successfully SSH'ed into host '${!var}' with username '${!node_username}'"
|
||||||
else
|
else
|
||||||
_log "ERROR" "Unable to SSH into host '${!var}' with username '${!node_username}'"
|
_log "ERROR" "Unable to SSH into host '${!var}' with username '${!node_username}', did you copy over your SSH key?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user