ansible 报错 "changed": false, "msg": "Failed to connect to the host

发布时间 2023-12-05 10:15:04作者: 代码你敲我不敲

报错:

"changed": false,
    "msg": "Failed to connect to the host via ssh: root@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",
    "unreachable": true}
“changed”: 假,
    “msg”: “无法通过 ssh 连接到主机: root@node1: 权限被拒绝 (publickey,gssapi-keyex,gssapi-with-mic,password).”,
    “unreachable”: 真