1、Failed to connect to the host via ssh: Permission denied 权限拒绝
没有ssh秘钥认证。
ansible是基于ssh秘钥认证的,估生成秘钥,重新分发下公钥就ok了
[root@m01 /server/ansible-playbook]# ansible-playbook -C ansible-var01.yml
PLAY [oldboy] ************************************************************************************************************************
TASK [Gathering Facts] ***************************************************************************************************************
fatal: [172.16.1.41]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).", "unreachable": true}
fatal: [172.16.1.31]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).", "unreachable": true}
PLAY RECAP *********************************