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 in Ansible by Trisha
404 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 by Pallavi

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying "Cannot write to ControlPath" - Ansible

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

answered Mar 29 in Ansible by Yesha
291 views
+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

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 in Ansible by Kanika
71 views