Interview Prep/Ansible/Cloud, AWX, Windows and Molecule

`winrm or requests is not installed: No module named 'winrm'`

BeginnerTroubleshootingCloud, AWX, Windows and Molecule
Answer

Likely causes → The controller's Python lacks pywinrm. Windows hosts run modules over WinRM, and the client library is on the controller side.

Fix →

pip install "pywinrm>=0.4"            # add [kerberos] or [credssp] extras as needed

Install it into the same environment ansible-playbook uses (check ansible --version for the Python path) or into the EE.

Prevent → Keep pywinrm (and pypsrp if you use psrp) in the EE's requirements.txt.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule