I’m trying to switch from winrm to pypsrp in my ansible files to try to make connection more smooth and not getting timed out sometimes when working with Windows machines.
So I added this to my group-vars/all.yml file: ansible_connection: psrp ansible_port: 5985 ansible_psrp_transport: ntlm ansible_psrp_server_cert_validation: ignore ansible_psrp_shell: powershell
Then I did: pip install pypsrp pip install ntlm-auth
But when running my ansible scripts, I get:
pypsrp or depdencies are not installed. No module named pypsrp
But it’s installed so not sure why I get this, how can I fix this?
Is pypsrp installed in the same python environment as ansible and related tools? That could be your system environment, a python virtualenv, or the ee that you’re using.
I tried install pypsrp in a virtualenv where ansible is also installed, but I still get the problem.
If I type: ansible --version
It shows ansible core 2.18.8, and python version 3.12.3
If I’m not inside virtualenv, then I install pypsrp with:
pipx install pypsrp --include-deps --force
But still I get the probelm after that that “pypsrp is not found”.