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 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/abf163a3-5916-46ed-936f-5b77c60e193d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to