title: Managing windows hosts with Ansible. "winrm or requests is not installed."
body: <p>I'm currently setting up Ansible on CentOS7 and I need to use it to manage some Windows machines.</p>
  
  <p>I was following these two guides (<a href="https://medium.com/the-sysadmin/managing-windows-machines-with-ansible-60395445069f" rel="nofollow noreferrer">1</a> &amp; <a href="http://devopstechie.com/managing-windows-machines-with-ansible/" rel="nofollow noreferrer">2</a>) to get this set up.</p>
  
  <p>When running the command <code>ansible host_group -i hosts -m win_ping</code></p>
  
  <p>I get back an error saying:</p>
  
  <blockquote>
    <p>x.x.x.x | FAILED! => {"msg": "winrm or requests is not installed: No module named xmltodict"}</p>
  </blockquote>
  
  <p>I checked my installed python modules and I have both <code>winrm</code> and <code>requests</code></p>
  
  <p>I'm not sure what I'm missing here. There was a post I found on the RedHat forums outlining the same problem <a href="https://access.redhat.com/solutions/335668" rel="nofollow noreferrer">https://access.redhat.com/solutions/335668</a></p>
  
  <p>Thanks for your time</p>
  
  <p>EDIT: I also have xmltodict installed.</p>