Hi, Thanks for the reply.
In the remote machine, generated public key and copied into the "authorized-keys" file of Jenkins. Is this correct way? Thanks, Hazar. On 08-Jul-2016 9:29 PM, "jcsirot" <[email protected]> wrote: > Hello, > > Is the host ssh key installed in the $HOME/.ssh dicrectory of the jenkins > user? > > -- > Jean-Christophe > > Le vendredi 8 juillet 2016 08:08:25 UTC+2, [email protected] a écrit : >> >> Hi , >> >> I have installed Jenkins on AWS EC2 instance. I have created Maven >> Project and added the settings to run "Ansibe Playbook" in post-builds >> section of Jenkins. >> >> While Jenkins executing the "ansible-playbook" im getting the below error. >> >> [workspace] $ ansible-playbook /home/ubuntu/playbooks/petclinic.yml -i >> /etc/ansible/hosts -s -U root -f 5 >> >> PLAY [MavenServers] >> ************************************************************ >> >> TASK [setup] >> ******************************************************************* >> fatal: [54.169.xx.xx]: UNREACHABLE! => {"changed": false, "msg": "Failed to >> connect to the host via ssh.", "unreachable": true} >> [ERROR]: Could not create retry file >> '/home/ubuntu/playbooks/petclinic.retry'. >> The error was: [Errno 13] Permission denied: >> '/home/ubuntu/playbooks/petclinic.retry' >> >> PLAY RECAP >> ********************************************************************* >> 54.169.xx.xx : ok=0 changed=0 unreachable=1 failed=0 >> >> >> Please help me. >> >> >> Thanks in advance. >> >> >> --Hazar. >> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Jenkins Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-users/6sFyJFN-URE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/32a4faa8-1438-41b6-b9d0-11332ab049ce%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/32a4faa8-1438-41b6-b9d0-11332ab049ce%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGpud8UtVK%3DSWvPVsFD%3DyOfQZxjFrqdrU4KaD_JhWoWRgF7jMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
