Try this,

pip install pywinrm==0.2.2
If you have RHEL subscription, check this link too
k this page too
https://access.redhat.com/solutions/4459791

Cheers
Ameya Agashe

On Thursday, 9 July 2020 07:42:32 UTC+10, Eric Holzapfel wrote:
>
> I have a Redhat Linux server RH7.8 
>
> It is running AWX no problem and Ansible no problem as far as LINUX 
> servers are concerned.
>
> I am trying to communicate to a w2k16 server via winrm from my linux 
> server.
> The linux box has python3, and pip3 and supposedly pywinrm is installed.
>
> The windows box appears to be setup correctly to listen for winrm requests.
> When I try to run  "sudo ansible -i inventory windows -m win_ping" I get 
> the error that everyone else gets:
> 10.125.8.56 | FAILED! => {
>     "msg": "winrm or requests is not installed: No module named winrm"
>
> If I check installed packages for requests - it say dependencies are met. 
> It also say that pywinrm dependencies are met.
> What does it take to get the winrm module to be found by python?
>
> Thanks
>
> ewholz
>

On Thursday, 9 July 2020 07:42:32 UTC+10, Eric Holzapfel wrote:
>
> I have a Redhat Linux server RH7.8 
>
> It is running AWX no problem and Ansible no problem as far as LINUX 
> servers are concerned.
>
> I am trying to communicate to a w2k16 server via winrm from my linux 
> server.
> The linux box has python3, and pip3 and supposedly pywinrm is installed.
>
> The windows box appears to be setup correctly to listen for winrm requests.
> When I try to run  "sudo ansible -i inventory windows -m win_ping" I get 
> the error that everyone else gets:
> 10.125.8.56 | FAILED! => {
>     "msg": "winrm or requests is not installed: No module named winrm"
>
> If I check installed packages for requests - it say dependencies are met. 
> It also say that pywinrm dependencies are met.
> What does it take to get the winrm module to be found by python?
>
> Thanks
>
> ewholz
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1fa65eb2-ec32-44f2-9f9d-c2edb19ec4aco%40googlegroups.com.

Reply via email to