Ansible shell 模块是否需要目标服务器上的 python?

Ash*_*har 5 python shell ansible

我有一个非常基本的剧本,它只是使用shell module目标远程主机上的运行脚本。

然而,在输出中它没有说明python interpreter not found.

在每个目标上安装 python 不是我可以追求的解决方案。

是否可以使用我的 Ansible 自动化来运行剧本并使用 shell 模块执行脚本而无需依赖 python?

Zei*_*tor 7

除了rawscript模块之外,任何 ansible 操作都需要在目标节点上使用 python 。

参考: