ansible 命令:ansible all -m ping -i host.yml
这是我的 host.yml
---
all:
hosts:
tencent:
ansible_user: "ubuntu"
ansible_host: "106.55.XXX.XXX"
ansible_ssh_private_key_file: "key.pem"
ansible_ssh_common_args: 'ssh -o ProxyCommand="ssh -i bastion.key.pem ubuntu@102.106.XXX.XXX"'
错误信息:
Failed to connect to the host via ssh: Connection timed out during banner exchange
ansible中如何正确使用跳转主机?