AWX Ansible - 端点节点的 Python 要求

AWX Ansible - 端点节点的 Python 要求

我已经在 AWX 中设置了我的库存,并尝试执行一个简单的 ping 命令。我收到以下错误:

SSH password: 
SUDO password[defaults to SSH password]: 
192.168.168.21 | FAILED! => {
    "changed": false, 
    "module_stderr": "Connection to 192.168.168.21 closed.\r\n", 
    "module_stdout": "/bin/sh: /usr/bin/python: No such file or directory\r\n", 
    "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", 
    "rc": 127
}

这是否意味着 awx 想要在其上运行命令的任何节点都需要 python?我觉得这有点奇怪。要么是我做错了什么,要么就是它构建时要求它管理的所有节点都需要 python。我假设它会在 (awx_task 或 awx_web) 上使用 python,子进程连接到 ssh 并连接到主机并运行 shell 命令。

答案1

您必须向下(或向上?)一级。Ansible 要求在其连接的机器上安装 Python。AWX 是围绕 Ansible 的 UI/API。

我知道的唯一不需要 Python 的模块是raw模块。

我的建议是,如果您要使用 AWX 或 Ansible Tower,首先要熟悉一下 Ansible。

相关内容