ansible 执行报如下错误

##############################################################
172.16.249.28 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to create temporary directory.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\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1641299978.08-28456-158384084667069 `\" && echo ansible-tmp-1641299978.08-28456-158384084667069=\"` echo ~/.ansible/tmp/ansible-tmp-1641299978.08-28456-158384084667069 `\" ), exited with result 1",
"unreachable": true
}</

本文讲述了在使用Ansible时遇到的无响应错误,实际原因是目标机器上的ansible用户密码已过期。解决方法是更新密码。涉及的知识包括YAML语法和远程目录权限管理。

967

被折叠的 条评论
为什么被折叠?



