Ansible 命令不能从 rubdeck GUI 运行 [英] Ansible commands are not run from rubdeck GUI
问题描述
我已经使用下面提到的链接步骤配置了 rundeck 项目.https://stackoverflow.com/questions/60011639/rundeck-integration-with-ansible-through-plugin/60019714?noredirect=1#comment106258813_60019714
我也可以在远程服务器上执行像 ls -la, df-h
这样的 shell 命令,但是当我使用 ansible -m ping all
时,它给出了错误(你可以在屏幕截图中看到)https://imgur.com/a/ZvJjn2Z
.我如何解决这个问题.
I have configured rundeck project with the below mentions link steps.
https://stackoverflow.com/questions/60011639/rundeck-integration-with-ansible-through-plugin/60019714?noredirect=1#comment106258813_60019714
I am able to execute the shell commands like ls -la, df- h
on remote server as well but when I use ansible -m ping all
its gives error (you can see in the screenshot) https://imgur.com/a/ZvJjn2Z
.how I can solve the issue.
推荐答案
基本上你所做的是在所有节点上调用 ansible 而不是所有节点都安装了 Ansible,请记住 Ansible 是通过 Rundeck 安装在你的服务器上的(不是在所有节点,都是ansible: command not found"消息的原因).
Basically what you are doing is calling ansible on all nodes and not all have Ansible installed, keep in mind that Ansible is installed in your server with Rundeck (not in all nodes, is the reason of "ansible: command not found" message).
如果你遵循了这个,现在你所有的命令都用 Ansible包装"了,你不需要调用Ansible 直接作为命令(检查步骤 4 和 5).
If you followed this, now all your commands run "wrapped" with Ansible, you don't need to call Ansible directly as a command (check the steps 4 and 5).
现在,关于作业,只需在此处配置一个新项目和您的节点.现在,您可以将内联剧本添加为步骤或调用外部剧本到 Rundeck/Ansible 节点.您可以通过向您的工作添加一个步骤来完成此操作,您可以在此处看到.
Now, about the jobs, just configure a new project and your nodes as it appears here. 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.
这篇关于Ansible 命令不能从 rubdeck GUI 运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!