Unable to run ansible playbook invoked from Jenkins. I am getting Error the playbook: /var/lib/jenkins/roles/tomcat/main.yml not be found. But it is there in the server.

I have invoked Ansible playbook as a build post to fetch my .war file after build into my tomcat conatainer.

Manually from server i could execute the command successfully, but via Jenkins it failed. I have configured Ansible in Jenkisn in global system configuration and downloaded the plugins as well.

  • your slave node is part of k8s or regular docker? – Dima Revelis Feb 14 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.