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