Permission denied error while building a project using Ansible on jenkins

0 votes

I've created a job in jenkins and I want to build the project using ansible but I get the following error:

/home/ubuntu/install.sh -s -U ubuntu -f 5
FATAL: command execution failed
java.io.IOException: Cannot run program "/usr/bin/ansible" (in directory "/var/lib/jenkins/jobs/Demo/workspace"): error=13, Permission denied
  at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
  at hudson.Proc$LocalProc.<init>(Proc.java:244)
  at hudson.Proc$LocalProc.<init>(Proc.java:216)
Apr 2, 2019 in Ansible by Laksha
2,700 views

1 answer to this question.

0 votes

Your Jenkins job is running as default user which does not have a shell and a shell would be required for Ansible. Try changing the user that you're using and let me know.

answered Apr 2, 2019 by Aleesha

Related Questions In Ansible

+1 vote
3 answers
0 votes
2 answers

Error while creating resource group on Azure using Ansible

Please check you indentation, remove all spaces ...READ MORE

answered Mar 17, 2020 in Ansible by Shrikant Yerge
1,530 views
0 votes
1 answer

Running a playbook using Ansible on Jenkins

Hey, @Asha seems like you've added a ...READ MORE

answered Apr 4, 2019 in Ansible by Akhil
3,488 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
0 votes
1 answer

Error saying permission denied while running ansible playbook

Hey @Neha, add the following line to ...READ MORE

answered Feb 8, 2019 in Ansible by Amy
15,862 views
0 votes
1 answer

Error while installing Ansible on Azure

There are few dependencies that you need ...READ MORE

answered Mar 26, 2019 in Ansible by Derryl
922 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP