Centos 7
Ansible 1.8
Python 2.7
there are some redundant entries in my environment path but I don’t see how that would cause this problem
PATH is /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/bin:/usr/sbin:/bin:/sbin:/home/username/.local/bin:/home/username/bin:/etc/ansible:/etc/ansible/bin:/usr/bin/python
Every time I try to run ansible I get
Traceback (most recent call last):
File “/etc/ansible/bin/ansible”, line 25, in
from ansible.runner import Runner
ImportError: No module named ansible.runner
I've had this come up before. The solution for me was to check then fix the permissions of the Python libraries/packages. Which were nonexecutable when the error was present. Think it may have to do with customized umask settings.
I can’t say for sure but I do remember a python guy helping me modify some file permissions so it certainly could have worked. Sorry I can’t be more certain.