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