In our environment Ansible is installed on one of the servers that I have access to. However, I do not have access to root so I can only install packages etc as my account.
I installed the packages like requests, pywinrm and few others as my user in a venv but when I execute ansible, it does not pick these up.
In a nutshell the issue is:
-
Packages do not get displayed in system python (the one that Ansible is pointing to)
/usr/bin/python3.9 -m pip list
-
Package display just fine in venv (this is under my venv)
python -m pip list
-
End result is that I receive error
winrm or requests is not installed: No module named 'winrm'
Is anyone aware of a fix for this issue?
Tried specifying ansible_python_interpreter
at the command line while invoking ansible but that did not help.
1