title: run ansible playbook on jenkins pipeline
body: <p>I open this topic because I have a issue when I try to run ansiblePlaybook in a Jenkins pipeline. The plugin ansible is install and enable. I have write a Jenkinsfile where i setup the environnement and call my ansible pipeline like you can see below : </p>
  
  <p><a href="https://i.stack.imgur.com/Vhcbs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vhcbs.png" alt="enter image description here"></a></p>
  
  <p>Like you can see it I had also verified that my ansible is in the path and that it recognised it. But it can't run it. Below the output with the error:</p>
  
  <p><a href="https://i.stack.imgur.com/EZFPH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EZFPH.png" alt="enter image description here"></a></p>
  
  <p>I also tried to run it like a shell command :</p>
  
  <p><a href="https://i.stack.imgur.com/yKv8d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yKv8d.png" alt="enter image description here"></a></p>
  
  <p>But it can't reach my server the ssh connection fails :</p>
  
  <p><a href="https://i.stack.imgur.com/a69Q1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a69Q1.png" alt="enter image description here"></a></p>
  
  <p>But when I use ansible in a freestyle job it works well so I don't understand why ! </p>
  
  <p>Hopefully, someone can help me with this issue and have a solution even for the second issue so I can have a temporary solution. Please, forgive my English if it is bad, it's not my native language.</p>
  
  <p>Regards,</p>