title: How to execute ansible playbook in Jenkins
body: <p>I want to run a playbook using Jenkins. I have Docker installed in windows 10 machine. Through Docker I brought up a local Jenkins, and I installed GIT and Ansible plugin in it. </p>
  
  <p>Now if the Jenkins job gets triggered, my playbook is getting downloaded from GIT to my Jenkins workspace. From my workspace I am trying to run the playbook.
  When I trigger the build job I am facing issue after checkout from GIT as follows: </p>
  
  <pre><code>[MyFirstJob] $ sshpass ******** /usr/bin/ansible-playbook /usr/bin -l "${group} /hostname" -f 5 -u dinesh -k
  FATAL: command execution failed
  java.io.IOException: Cannot run program "sshpass" (in directory "/var/jenkins_home/workspace/MyFirstJob"): error=2, No such file or directory
      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
      at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:249)
      at hudson.Proc$LocalProc.&lt;init&gt;(Proc.java:218)
  </code></pre>
  
  <p>I do not have Ansible installed in my local machine. Do I need to install it in my local ? Or any other steps to run my ansible playbook through my local Jenkins. Any help would be appreciated. Thanks!</p>