- 积分
- 455
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2016-6-14
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
|
使用ansible,对一台nexus机器进行ping测试报如下错,密码是对的,单独测试过ssh是可以登录的
[root@wangyang chase.wang]# ansible 192.168.12.20 -m ping -u admin -k
SSH password:
192.168.12.20 | 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 Cmd exec error./.ansible/tmp `\"&& mkdir \"` echo Cmd exec error./.ansible/tmp/ansible-tmp-1636960719.86-13921-202775489874268 `\" && echo ansible-tmp-1636960719.86-13921-202775489874268=\"` echo Cmd exec error./.ansible/tmp/ansible-tmp-1636960719.86-13921-202775489874268 `\" ), exited with result 16, stdout output: Syntax error while parsing '/bin/sh -c '( umask 77 && mkdir -p \"` echo Cmd exec error./.ansible/tmp `\"&& mkdir \"` echo Cmd exec error./.ansible/tmp/ansible-tmp-1636960719.86-13921-202775489874268 `\" && echo ansible-tmp-1636960719.86-13921-202775489874268=\"` echo Cmd exec error./.ansible/tmp/ansible-tmp-1636960719.86-13921-202775489874268 `\" ) && sleep 0''\n\n\nCmd exec error.\n",
"unreachable": true
}
|
|