总结一些ansible执行出现的错误及解决办法
报错一:Authentication or permission failure
10.86.78.142 | 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 /geelyapp/ansible-tmp-1586249485.61-166743860327847 `" && echo ansible-tmp-1586249485.61-166743860327847="` echo /geelyapp/ansible-tmp-1586249485.61-166743860327847 `" ), exited with result 1", "unreachable": true }
原因1:
被登录主机上的用户的密码不对了或密码过期;修改下对应用户的密码为正确密码即可;
原因2:
被登录主机上面磁盘空间满了,是不是有点坑?估计这个问题可能坑了很多人吧。。。
报错二: