Re: [ansible-project] ansible 2.8.4 throwing errors on all playbooks

47 views
Skip to first unread message
Message has been deleted

Dick Visser

unread,
Sep 18, 2019, 2:26:14 AM9/18/19
to ansible...@googlegroups.com
That’s not a lot of information you’re giving.

How was ansible installed?
What in centos7 exactly did you update to the ‘latest’?
What versions mean latest? And what were they before that?

Dick 

On Wed, 18 Sep 2019 at 04:06, Andrew Meyer <andre...@gmail.com> wrote:
I just updated CentOS 7 to the latest and now am getting this any playbook I try to run.

[andrew@automation01 installer]$ ansible-playbook -i inventory install.yml -vv
Traceback (most recent call last):
 
File "/usr/bin/ansible-playbook", line 32, in <module>
   
from ansible import context
ImportError: cannot import name context



--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d8ed5b31-21ef-46a4-9ae3-9aa1b9faf3f4%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Vladimir Botka

unread,
Sep 18, 2019, 3:23:16 AM9/18/19
to Andrew Meyer, ansible...@googlegroups.com
On Tue, 17 Sep 2019 19:06:36 -0700 (PDT)
Andrew Meyer <andre...@gmail.com> wrote:

> I just updated CentOS 7 to the latest and now am getting this any playbook
> I try to run.
>
> [andrew@automation01 installer]$ ansible-playbook -i inventory install.yml -
> vv
> Traceback (most recent call last):
> File "/usr/bin/ansible-playbook", line 32, in <module>
> from ansible import context
> ImportError: cannot import name context

It's mixed yum/pip install, I guess. Delete all Ansible packages (yum/pip),
make sure nothing's left and install Ansible from scratch.

Cheers,

-vlado

Andrew Meyer

unread,
Sep 18, 2019, 7:10:54 AM9/18/19
to Ansible Project
Sorry I recently updated to CentOS 7.7.1909.  I have installed ansible through yum.  This is in a home lab and I tried to do a yum history undo ## and it failed broken dependencies.
Reply all
Reply to author
Forward
0 new messages