ansible.context is new in Ansible 2.8 You claim you are using ansible 2.7.8
As such, it sounds like you have a mixed/broken installation of Ansible. On Tue, May 21, 2019 at 10:06 AM Nabil Boutayeb <[email protected]> wrote: > hello everyone: > weeks ago ansible were working fine, > but today, > trying to execute ansible i got this message: > > Traceback (most recent call last): > File "/usr/bin/ansible", line 137, in > from ansible import context > ImportError: cannot import name context > > > > *i'm using:* > > ansible 2.7.8 > python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] > > Ubuntu 18.04.2 LTS > > > I remember doing an update that ask me to accept to change the ansible.cfg > and that I refused. > > > plz help. > > > cordially > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/f6553dc2-e929-41b1-ab83-501ccacbda12%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f6553dc2-e929-41b1-ab83-501ccacbda12%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8n4mqiG6YUsfcZ%2BDJ_wiHGeoFYup1O_iewK3hCLf8f7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
