Error saying permission denied while running ansible playbook

0 votes

I'm following this blog to install OpenShift origin v3 on OpenStack using Ansible.  I got stuck with this error:

"Could not create fact file: %s, error: %s" % (filename, ex) main.OpenShiftFactsFileWriteError: Could not create fact file: /etc/ansible/facts.d/openshift.fact, error: [Errno 13] Permission denied: '/etc/ansible/facts.d'

Can somebody please help me.. 

Feb 8, 2019 in Ansible by Neha
15,924 views

1 answer to this question.

0 votes

Hey @Neha, add the following line to your /etc/sudoers file:

centos All=(ALL) NOPASSWD:ALL

Let me know if it works.. Thank you :)

answered Feb 8, 2019 by Amy
Already tried that, didn't work :(

Add these two lines on ansible.config file:

sudo = true 
sudo_user = root
Ohh.. thanks worked like a charm.

Related Questions In Ansible

0 votes
1 answer

Permission denied when running ansible playbook through jenkins

Jenkins uses it's own user to execute ...READ MORE

answered Jun 25, 2018 in Ansible by DareDev
• 6,890 points
4,169 views
0 votes
1 answer

Remote host throwing error saying "Permission Denied" - Ansible

Hey @Patrick, Change the path of Ansible's remote_tmp ...READ MORE

answered Jan 16, 2019 in Ansible by Cerci
5,004 views
+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,065 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying script is already running - Ansible playbook error

Remove the previous processes before running this ...READ MORE

answered Feb 8, 2019 in Ansible by Dee
1,212 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