Ansible error from ansible import context ImportError cannot import name context

0 votes

When I try to execute my ansible playbook, I get the following error message:

Traceback (most recent call last):
File "/usr/bin/ansible", line 137, in 
from ansible import context
ImportError: cannot import name context
Aug 8, 2019 in Ansible by Trisha
13,392 views

1 answer to this question.

0 votes
I had faced a similar issue. In my case, the issue was that there were two different versions of ansible installed. I uninstalled both of them and installed one version. And the error disappeared. But I am not sure if this will work for you.
answered Aug 8, 2019 by Pallavi

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
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 4,622 views
0 votes
1 answer

Error saying "Cannot write to ControlPath" - Ansible

hey @Neel, this seems like your Linux ...READ MORE

answered Mar 29, 2019 in Ansible by Yesha
3,912 views
+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
4,064 views
+2 votes
1 answer
0 votes
1 answer

CRC check failed error when pulling ansible role from git

You can try adding --no-wait option to the ansible-galaxy import call ...READ MORE

answered Mar 14, 2019 in Ansible by Kanika
1,094 views
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