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 in Ansible by Naina
76 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 by Anushri

edited Feb 6

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
1 answer
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.