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/ -s -U ubuntu -f 5
FATAL: command execution failed Cannot run program "/usr/bin/ansible" (in directory "/var/lib/jenkins/jobs/Demo/workspace"): error=13, Permission denied
  at java.lang.ProcessBuilder.start(
  at hudson.Proc$LocalProc.<init>(
  at hudson.Proc$LocalProc.<init>(
Apr 2, 2019 in Ansible by Laksha

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 16 in Ansible by Shrikant Yerge
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
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
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
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