AnsibleProject sshpass ansible-playbook devopsproject yml -i myinv -f 5 -u user1 -k sshpass Failed to run command No such file or directory FATAL command execution failed

0 votes
Here Ansibleproject is job name and i am trying to run the ansible playbook through jenkins but i am getting above error
Aug 9, 2020 in Ansible by anonymous
• 220 points
2,388 views

1 answer to this question.

0 votes

Hi,

When we run any file from Jenkins, then Jenkins will search that file in its workspace. But in your case, it seems your file is located in a different place. Check your Jenkins script and set the path properly.

If you're looking for a better career, I personally suggest you take the Post Graduate Program in DevOps!

answered Aug 10, 2020 by MD
• 95,460 points

Related Questions In Ansible

0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
+1 vote
3 answers
+1 vote
4 answers

Pass variable to ansible playbook through command line

ansible-playbook test.yml --extra-vars "arg1=${var1} arg2=${var2}" Use is like ...READ MORE

answered May 7, 2019 in Ansible by Bobin
14,420 views
0 votes
1 answer

Ansible playbook to wget a file

Hey @Celia, one recommendation, try not using ...READ MORE

answered Jan 16, 2019 in Ansible by Vaishu
17,721 views
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

answered Jan 17, 2019 in Ansible by Nicolas
15,742 views
0 votes
1 answer

bash: ansible: command not found. Failed to search for file: Cannot update read-only repo

Hi@akhtar, By default, Ansible is not part of ...READ MORE

answered Jul 28, 2020 in Ansible by MD
• 95,460 points
11,001 views
0 votes
1 answer

Is it possible to start ec2 Windows machine and run windows command using ansible playbook?

Hi@Lakshminarayanan, Yes, you can do that. But after ...READ MORE

answered Aug 14, 2020 in Ansible by MD
• 95,460 points
2,749 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