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.


On Wednesday, 1 March 2017 16:00:01 UTC+1, vu001 wrote:
>
> Hi to all!
>
> 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) 
>
> Thanks a lot.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c6e91571-b419-4f08-9644-7c7ff4f952fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to