Error saying ImportError No module named ansible playbook when installing ansible on aws

0 votes

I'm trying to install ansible on Amazon AWS and I encountered the following error:

# yum install ansible --enablerepo=epel
# ansible-playbook
Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 44, in <module>
    import ansible.playbook
ImportError: No module named ansible.playbook

What's the issue?

Feb 4, 2019 in Ansible by Naina
4,129 views

1 answer to this question.

0 votes

Hey @Niana, I don't think you have python installed on your master. install it using pip

pip install pyhton
answered Feb 4, 2019 by Anushri

edited Feb 6, 2019

this command: pip install ansible insstalls python? or does it install ansible?

Sorry, I meant to say, python might be missing. And install it using

pip install python.

I've changed my answer.

Related Questions In Ansible

0 votes
1 answer
0 votes
2 answers

Error saying "ImportError: No module named yaml"

actually this related python pckage in order ...READ MORE

answered Jul 18, 2020 in Ansible by shivanand
16,653 views
0 votes
1 answer
0 votes
2 answers
+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
3,458 views
+2 votes
1 answer
0 votes
1 answer
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