ansible执行命令或playbook报错原因及解决方法整理


总结一些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:

被登录主机上面磁盘空间满了,是不是有点坑?估计这个问题可能坑了很多人吧。。。

报错二:

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM