FATAL: Ansible CLI (2.10.2) and python module (2.10.6) versions do not match. #1468
-
Hi togehter, I would love to get Ansible-Lint running on my environment, but it does not execute. When trying to execute
I kindly checked out the discussions and already digged deeper into the code to see where the FATAL Error comes from, but I am not capable to get it running. Just before you ask: I already upgraded ansible and ansible-lint through pip and I honestly do not know how to downgrade the ansible python module. I also tried to install ansible v. 2.10.2, but it didn't work as well. Thanks in advance for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I finally found the problem. I had several python/bin/ directories and somehow Ansible CLI was loaded from another bin than the ansible module! For all people having the same problem: |
Beta Was this translation helpful? Give feedback.
-
Hey folks, I am trying to get ansible-lint to work on my RHEL 8 Laptop. I am not sure what I am doing wrong. Here is what I am seeing: find / -executable -name ansible -type f 2>/dev/null -exec '{}' --version ; | grep '^ansible [core|executable' ansible-lint --version grep 'PATH=$PATH' .bashrc Thanks in advance for your feedback!! |
Beta Was this translation helpful? Give feedback.
-
For anyone using linuxbrew, I solved this with |
Beta Was this translation helpful? Give feedback.
I finally found the problem. I had several python/bin/ directories and somehow Ansible CLI was loaded from another bin than the ansible module!
For all people having the same problem:
find / -name ansible 2>/dev/null
and check every executable with
--version
flag. Finally edit your$PATH
variable to match.