I would like to integrate Ansible and Jenkins using ansible plugin from Jenkins.
Is it possible to run Ansible commands on remote host from Jenkins, or the idea of Ansible plugin for Jenkins is that both of them are on the same server.
To simplify, Jenkins is on server1, Ansible is on server2. Is it possible, using Ansible plugin for Jenkins, to run ansible commands on server2 where is Ansible from Jenkins (I already done this with shell commands)
I would suggest that you add server2 as a slave in your Jenkins. Create a Jenkins job, configure it to run on this slave and specify the Ansible commands in the build step just like you execute any other shell command.