Ansible 命令不是来自 rubdeck GUI 的 运行

Ansible commands are not run from rubdeck GUI

我已经使用下面提到的 link 步骤配置了 rundeck 项目。 我也可以在远程服务器上执行 shell 命令,例如 ls -la, df- h,但是当我使用 ansible -m ping all 时,它会出现错误(您可以在屏幕截图中看到)https://imgur.com/a/ZvJjn2Z .how我可以解决这个问题。

基本上你正在做的是在所有节点上调用 ansible 而不是所有节点都安装了 Ansible,请记住 Ansible 安装在你的带有 Rundeck 的服务器中(不是在所有节点中,这是 "ansible: command not found" 的原因消息)。

如果您遵循 ,现在您所有的命令 运行 "wrapped" 都使用 Ansible,您不需要直接调用 Ansible 作为命令(检查步骤 4 和 5 ).

现在,关于作业,只需配置一个新项目和您的节点,因为它出现 . And now you can add inline-playbooks as step or call external playbooks to Rundeck / Ansible nodes. You can do this by adding a step to your Job as you can see here