總結一些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:
被登錄主機上面磁盤空間滿了,是不是有點坑?估計這個問題可能坑了很多人吧。。。
報錯二: