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
597 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 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
0 votes
1 answer
0 votes
2 answers
+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,380 points
211 views
0 votes
1 answer