linux - 模块无法启动 Ansible

标签 linux ansible continuous-integration yaml continuous-deployment

我是 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"
}

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

提前致谢

最佳答案

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

关于linux - 模块无法启动 Ansible,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57167948/

相关文章:

c - F_SEAL_SEAL 未声明,即使包含 header

linux - 为什么不同的环境在调用man -ls 时包含不同的命令行选项? (环境 : codecademy, cb.vu)

python - 如何在脚本仍在运行时使 shell 输出重定向 (>) 写入?

azure - 使用计划程序和变量组运行 Azure DevOps CI Pipeline

linux - 如果脚本中有任何依赖关系,yum 可以中止软件包删除吗?

apache - 在 CentOS 上安装 apache 模块

ubuntu - Ansible 操作未定义错误

windows - 如何使用 Ansible 从 Windows 节点获取文件

azure - 确保 azure pipeline 构建的 dll 和 nuget 包包含与 csproj 版本相同的信息

continuous-integration - 运行脚本以确定是否应运行Jenkins矩阵作业