ansible 链接物理机报错

来源:6-6 实现ssh密码登录执行命令

格式化007

2019-07-13

192.168.0.110 | UNREACHABLE! => {
“changed”: false,
“msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in “/tmp”. Failed command was: ( umask 77 && mkdir -p “echo /Users/liqiang/.ansible/tmp/ansible-tmp-1563010695.739692-90230755413616” && echo ansible-tmp-1563010695.739692-90230755413616=”echo /Users/liqiang/.ansible/tmp/ansible-tmp-1563010695.739692-90230755413616" ), exited with result 127",
“unreachable”: true
}

写回答

2回答

Jeson

2019-07-14

可能是目录的权限有问题,/tmp 建议检查下 /Users/liqiang/.ansible/tmp

0
1
格式化007
这是我通过hosts 配置访问192.168.0.110这个机器报的错,用户名为liqiang 192.168.0.110:22 ansible_ssh_user=liqiang ansible_ssh_pass='123123' 查到的问题 什么权限都修改的,我的本地怎么会有这个目录, hosts 中配置了两台机器 只有一台是通的
2019-07-14
共1条回复

格式化007

提问者

2019-07-13

ssh是可以连接的

0
0

Python+Django+Ansible Playbook自动化运维项目实战

【课程升级3.6版本】大牛全面践行DevOps,运维与开发间高效协作

861 学习 · 326 问题

查看课程