【ansible】ansible用户密码过期报错
发布网友
发布时间:2023-01-09 19:15
我来回答
共1个回答
热心网友
时间:2023-10-24 04:16
##############################################################
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
}
###############################################################
https://oktools.net/json2yaml
看报错,还以为是目标机器相关目录权限不对,实际是目标机器ansible用户密码过期了,需要更新一下。
YAML 语言教程
http://www.ruanyifeng.com/blog/2016/07/yaml.html
springCloud、SpringBoot的yaml文件编辑规范及注意点
http://www.hellojava.com/a/954.html
JSON转YAML,YAML转JSON
https://oktools.net/json2yaml
Yaml Cookbook
https://yaml.org/YAML_for_ruby.html