# I have Ansible and Jenkins installed on Different Servers how can i configure both

**URL:** <https://forum.ansible.com/t/i-have-ansible-and-jenkins-installed-on-different-servers-how-can-i-configure-both/32035>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [January 23, 2020, 4:04am UTC](https://forum.ansible.com/t/i-have-ansible-and-jenkins-installed-on-different-servers-how-can-i-configure-both/32035 "2020-01-23T04:04:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sai\_Prasha](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Sai\_Prasha](https://forum.ansible.com/u/Sai_Prasha)\
**Post date:** [January 23, 2020, 4:04am UTC](https://forum.ansible.com/t/i-have-ansible-and-jenkins-installed-on-different-servers-how-can-i-configure-both/32035/1 "2020-01-23T04:04:00Z")

</div>

I have Ansible and Jenkins on Windows but on different servers how can i establish a connection between this two to trigger a playbook based on inventory files  
What is the inventory path to be given?  
My inventory file is as shown below

[win]  
10.96.43.61  
10.96.43.177

[win:vars]  
ansible\_user=Administrator  
ansible\_password=N0b0r33l  
ansible\_connection=winrm  
ansible\_winrm\_server\_cert\_validation=ignore

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [January 24, 2020, 5:31pm UTC](https://forum.ansible.com/t/i-have-ansible-and-jenkins-installed-on-different-servers-how-can-i-configure-both/32035/2 "2020-01-24T17:31:30Z")

</div>

You can use the not-particularly-helpfully-named ‘Publish Over SSH’ Jenkins plugin [https://plugins.jenkins.io/publish-over-ssh](https://plugins.jenkins.io/publish-over-ssh) which lets you run arbitrary commands as well as transferring files.

If your playbooks run for more than 2 minutes you will need to configure the ‘Exec timeout (ms)’ setting ( I found I had to do this in the common jenkins configuration and individually on each Jenkins job).

Hope this helps,

Jon
