设为首页收藏本站language 语言切换
查看: 1108|回复: 0
收起左侧

nexus使用ansible报错

[复制链接]
发表于 2021-11-15 15:36:28 | 显示全部楼层 |阅读模式
使用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
}

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-2 21:04 , Processed in 0.049406 second(s), 12 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表