我是新来的。我在做Ubunto的机器。在虚拟机上,我安装了Ansible以及应用实战手册。
当我运行一个剧本时,我收到以下错误。
fatal: [localhost]: FAILED! => {
"ansible_facts": {},
"changed": false,
"msg": "The following modules failed to execute: setup\n setup: The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error\n"
}你能告诉我应该从哪里开始找吗?此外,还建议您提供帮助解决此问题所需的更多信息。
提前感谢
发布于 2019-11-22 02:40:14
我遇到过类似的情况,我从清单中删除了ansible_python_interpreter=/usr/bin/python3,它起作用了。
发布于 2021-01-27 13:22:24
我也遇到过类似的问题。我在目标机器和管理器节点上安装了python3,我使用的是Python2.7。当我在目标机上安装python 2.7时,模块执行成功。
https://stackoverflow.com/questions/57167948
复制相似问题