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 對其管理的所有節點的要求構建的。 。

答案1

你必須降級(或升級?)。 Ansible 要求在其連接的機器上安裝 python。 AWX 是圍繞 Ansible 的 UI/API。

我知道的唯一不需要 python 的模組是raw模組。

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

相關內容