1、将需要登陆主机得公钥添加到known_hosts
ssh-keyscan 192.168.77.129 192.168.77.130 >> /root/.ssh/known_hosts
2、ansible还可以使用下列简单办法
export ANSIBLE_HOST_KEY_CHECKING=False
ssh-keyscan 192.168.77.129 192.168.77.130 >> /root/.ssh/known_hosts
export ANSIBLE_HOST_KEY_CHECKING=False