【ansible】ansible用户密码过期报错

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

}

###############################################################

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值