Merge "Use BatchMode to check whether host is accessible via SSH"

This commit is contained in:
Zuul 2019-06-24 19:05:26 +00:00 committed by Gerrit Code Review
commit 60c7a219cb
2 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,7 @@
tasks:
- name: Check whether the host is accessible via SSH
local_action:
module: command ssh -p {{ ssh_port }} {{ ssh_user }}@{{ ssh_host }} hostname
module: command ssh -o BatchMode=yes -p {{ ssh_port }} {{ ssh_user }}@{{ ssh_host }} hostname
failed_when: false
changed_when: false
register: ssh_result

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Uses BatchMode to check whether a host is accessible via SSH. This prevents
Kayobe from hanging on a password prompt when password authentication is
enabled on the host and the Kayobe Ansible user is not yet configured.