We have ssh keys established between our Jenkins server and our Ansible 
server.  Then in the Jenkins job, we have an Execute Shell command with an 
entry like so...

ssh ansible@ansible_server_address -C "cd 
~ansible/playbooks;ansible-playbook -i hostsfile site.yml --extra-vars 
"whatever vars you want to pass" -vv"

We have the Jenkins job set to run periodically (i.e. cron'd)

On Tuesday, April 12, 2016 at 8:49:35 AM UTC-6, mondher khas wrote:
>
> I want to execute an ansible playbook using Bamboo or jenkins.  
> However the build failed because  i can't pass the ssh password .
>  Have you any idea please ?
>

-- 
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/a0c61850-9122-495e-bf43-d1e6462e7d7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to