Hi Kiran, I suspect that the Ansible plugin for Jenkins only looks for a locally installed Ansible binary. See the example at the plugin page: https://wiki.jenkins-ci.org/display/JENKINS/Ansible+Plugin
Cheers, //Jon On Wednesday, February 3, 2016 at 2:46:55 AM UTC+1, Kiran wrote: > My Ansible (version 1.9.5) server is on its own dedicated CentOS 7 server. > My Jenkins (version 1.6) server is on its own dedicated CentOS 7 server. I > installed the Ansible plugin for Jenkins. I created a New Item that invokes > an ad-hoc Ansible command. For the Ansible Installation field, I enter the > DNS name of the Ansible server. For host pattern, I chose the group of > servers that I want the Ansible playbook to run again. The group name was > defined in the .../ansible/hosts file. > > The console output of this new Jenkins job that should invoke an ansible > command (on a separate server with Ansible installed) says this: > > "Building in workspace /var/lib/jenkins/jobs/... $ sshpass ****** /ansible > ... DNSnameOfAnsibleServer -i ... FATAL: command execution failed > hudson.AbortException: Ansible Ad-Hoc command execution failed at > org.jenkinsci.plugins.ansible.AnsibleAdHocCommandBuilder.perform(AnsibleAdHocCommandBuilder.java:176 > at ..." > > Does the Ansible server need sshpass? The Jenkins server has sshpass. > > How do I get Jenkins to invoke an ansible playbook on an Ansible server? > This error makes me think that something is wrong with sshpass. I can view > the man page of sshpass. Is there a certain version that I need? -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1b1ce818-ceda-4676-b5d0-587a108a9ac1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
