DebugFactor.com | Forum

Ansible Error: winrm or requests is not installed

I am trying to run a job in Ansible Tower and I get the below error.

FAILED! =>{
winrm or requests is not installed. No module named winrm/xmldict
}

Kindly advice.

  1. On the Ansible host, make sure the pywinrm package is installed. If not, install using the below command.
    pip install 'pywinrm>=0.2.2'
    or 
    yum install python2-winrm.noarch
  1. Also, in Ansible Tower make sure the Ansible Environment is default/base and not virtual.

  2. On the remote server, make sure winrm is installed. Navigate to services and check if winrm ( Windows Remote Management) is installed and running.