Skip to content
Snippets Groups Projects
Commit 60c7a219 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

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

parents 794566e2 0e6703a3
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
tasks: tasks:
- name: Check whether the host is accessible via SSH - name: Check whether the host is accessible via SSH
local_action: 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 failed_when: false
changed_when: false changed_when: false
register: ssh_result register: ssh_result
......
---
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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment