简体   繁体   English

Ansible 命令不能从 rubdeck GUI 运行

[英]Ansible commands are not run from rubdeck GUI

I have configured rundeck project with the below mentions link steps.我已经使用下面提到的链接步骤配置了 rundeck 项目。 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. 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它会给出ansible -m ping all错误(您可以在屏幕截图中看到) https://imgur.com/a/ZvJjn2Z我如何解决这个问题。

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,请记住 Ansible 安装在带有 Rundeck 的服务器中(不是在所有节点中,是“ansible: command not found”消息的原因)。

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).如果你遵循了这个,现在你所有的命令都用 Ansible “包装”了,你不需要直接调用 Ansible 作为命令(检查步骤 4 和 5)。

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.现在,您可以将内联剧本添加为步骤或调用外部剧本到 Rundeck / Ansible 节点。 You can do this by adding a step to your Job as you can see here .您可以通过向您的工作添加一个步骤来完成此操作,如您在此处所见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM