"winrm or requests is not installed: No module named xmltodict"

Viewed 15

I'm working on ansible and windows servers, I'm getting the error mentioned below.

FAILED! => { "msg": "winrm or requests is not installed: No module named xmltodict" }

  1. I installed winrm service, command: pip3 install --ignore-installed pywinrm

  2. I try to reconfigure the winrm, winrm is running in the remote machine

  3. I reinstall winrm.

  4. i checked xmltodict packages, already exist.

tried above all points, again same error "winrm or requests is not installed: No module named xmltodict

ansible details : ansible-playbook 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, May 27 2022, 11:27:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]

I installed pip3.

what am I missing here? please help me with this.

0 Answers
Related