我想在远程ESXi上使用Ansible执行一个命令,但是似乎缺少一个模块grp。
# ansible esxi -a "date"
esxi | FAILED >> {
"failed": true,
"msg": "Traceback (most recent call last):\r\n File \"//.ansible/tmp/ansible-tmp-1409770903.88-199403044644009/command\", line 229, in <module>\r\n import grp\r\nImportError: No module named grp\r\n",
"parsed": false
}我试图将这些模块从另一个主机复制到ESXi python文件夹,但也没有工作。是否有办法使其工作,还是应该尝试为ESXi编译一个较新版本的Python?
发布于 2014-09-03 19:50:25
我错过了-m raw选项,因为ESXi上没有安装。
# ansible esxi -m raw -a "date"
esx1 | success | rc=0 >>
Sun Aug 24 22:26:49 UTC 2014https://serverfault.com/questions/626056
复制相似问题