Error saying "ImportError: No module named ansible.playbook" when installing Ansible on AWS

0 votes

I'm trying to install ansible on aws's instance with latest version Linux. But I'm getting an error

[root@ip-10-0-0-11 ec2-user]# yum install ansible --enablerepo=epel
[root@ip-10-0-0-11 ec2-user]# 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
Jan 13 in Ansible by Loki
368 views

1 answer to this question.

0 votes

Hey Loki, Looks like your python library doesn't have the correct permission. Run this command to get it solved:

# pip install ansible
answered Jan 13 by Patrick

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
181 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer