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, 2019 in Ansible by Loki
1,880 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, 2019 by Patrick

Related Questions In Ansible

0 votes
1 answer

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

Hey @Niana, I don't think you have ...READ MORE

answered Feb 4, 2019 in Ansible by Anushri

edited Feb 6, 2019 1,080 views
0 votes
1 answer

Error saying "ImportError: No module named yaml"

This error means It is unable to ...READ MORE

answered Jan 28, 2019 in Ansible by Barbara
3,827 views
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,400 points
421 views
0 votes
1 answer
0 votes
1 answer