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