Issue re Running ansible Playbook with Jenkins

321 views
Skip to first unread message

rikki....@gmail.com

unread,
Mar 4, 2016, 10:08:56 AM3/4/16
to Ansible Project
HI All,

I have created deployment playbook on the build server under user deploy: /home/deploy/playbooks/deploy.yml . And when I am running the playbook from the build server itself :

ansible-playbook deploy.yml  and it runs perfectly fine. The file gets deployed on the aap server.


However I am trying to execute the playbook through Jenkins and I am using Jenkins Ansible plugin, it is always giving me  ERROR! the playbook: /home/deploy/playbooks/deploy.yml could not be found, I have been struggling with this from so long now, but no luck. I have even tried execute the ansible playbook using shell script through jenkins but still keep on getting the same issue.


PS: I have created a deploy user on both the server build and app server app and both can communicate without password as I have installed ssh keys on both of the servers.


Please any help would be greatly appreciated..


Thanks and Regards,

Ricky

Dick Davies

unread,
Mar 4, 2016, 4:00:08 PM3/4/16
to ansible list
Might be a silly question, but are you sure you're running that job on
the master and not some random slave?
> --
> 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 ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/36a2fbe5-8699-435b-b6c0-dc70656486f7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

rikki....@gmail.com

unread,
Mar 4, 2016, 6:01:30 PM3/4/16
to Ansible Project, di...@hellooperator.net
Hi .. Yes, I am running the job on the master only. I dont have any slave..
Reply all
Reply to author
Forward
0 new messages