Ansible commands are not run from rubdeck GUI

依然范特西╮ 提交于 2021-02-11 16:40:57

问题


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.


回答1:


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).

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).

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.



来源:https://stackoverflow.com/questions/60101601/ansible-commands-are-not-run-from-rubdeck-gui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!