winrm error

58 views
Skip to first unread message

Somasundaram R

unread,
Apr 28, 2021, 5:49:53 AM4/28/21
to Ansible Project
I am trying to access windows host from ansible.
In my virtual environment, "pip list" command shows these packages installed
winrm
pywinrm
xmltodict
...etc...

when I play, playbook or adhoc command it shows error like as follows:
FAILED! => {"msg": "winrm or requests is not installed: No module named xmltodict"}

"which python" and "which pip" commands shows my virtual environment:
(my_virtual_environment)/bin/python
(my_virtual_environment)/bin/pip

Pls help me to find the issue. Thanks in advance. 
Reply all
Reply to author
Forward
0 new messages