在部署过程中- 准备 SSH 鉴权信息步骤出现问题
可能原因一:
ssh配置文件限制免密登录
· 确保/etc/ssh/sshd_config配置
RSAAuthentication yes
PubkeyAuthentication yesroot密码方式远程登录
· 安装sshpass插件
yum -y install sshpass· 确保/etc/ssh/sshd_config配置
PermitRootLogin yes
PasswordAuthentication yes· 在 inventory 节点后面加上
ansible_ssh_user=root ansible_ssh_pass=rootpassword