You can use the not-particularly-helpfully-named 'Publish Over SSH' Jenkins 
plugin 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


On Thursday, January 23, 2020 at 4:04:00 AM UTC, Sai Prasha wrote:
>
> 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
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fcd37267-527e-467a-b475-8b8b6fdf0806%40googlegroups.com.

Reply via email to