Ansible報錯的解決方法
出現以下報錯先檢查/etc/hosts查看ip是否有變更:
專注于為中小企業提供網站制作、成都網站設計服務,電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業海林免費做網站提供優質的服務。我們立足成都,凝聚了一批互聯網行業人才,有力地推動了上千多家企業的穩健成長,幫助中小企業通過網站建設實現規模擴充和轉變。
"msg": "Failed to connect to the host via ssh: ssh: connect to host s-nginx-3 port 22: Connection timed out",
出現以下報錯先檢查/root/.ssh/known_hosts刪除nginx-2的相關rsa的信息即可.
nginx-2 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n@ \nIT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\r\nSomeone could be eavesdropping on you right now (man-in-th by the remote host is\nSHA256:mLGTRAdsoC/plMuoawCaV6gCJipekSikSi6mB5j85ME.\r\nPlease contact your system administratown_hosts:12\r\nECDSA host key for nginx-2 has changed and you have requested strict checking.\r\nHost key verif
"unreachable": true
}
vim ~/.ssh/known_hosts
網頁題目:Ansible報錯的解決方法
轉載源于:http://www.xueling.net.cn/article/gpgoje.html