首页 > 解决方案 > 模块无法启动 Ansible

问题描述

我是 Ansible 的新手。我正在使用 Ubunto 机器。在 VM 上,我安装了 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"
}

你能告诉我应该从哪里开始寻找吗?还建议您提供帮助解决此问题所需的更多信息。

提前致谢

标签: linuxansiblecontinuous-integrationyamlcontinuous-deployment

解决方案


我有类似的情况,我ansible_python_interpreter=/usr/bin/python3从我的库存中删除并且它起作用了。


推荐阅读