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 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/32a4faa8-1438-41b6-b9d0-11332ab049ce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
