You do need an RH subscription if you want to use RHEL, else go for CentOS.
On Saturday, 11 July 2020 05:07:12 UTC+10, Eric Holzapfel wrote: > > Hello And Thanks for reply, > > I will try this PIP command (again) but I do not have an RH subscription. > > Also a new symptom, I can run a python program that imports winrm, but I > get an error "no winrm" if I try > to run the program as a regular user. If I run it as sudo - the python > program runs, no errors and returns the command from the windows machine. > I was running the "ifconfig /all" . So as sudo, and running a python > program that imports winrm, I can access the windows box. > > If I try a basic command line progarm "ansible windows -i hosts -m > win_ping" as a regular user or as sudo I get the same error: > "no winrm or request module available" What does ansible need to find > winrm??? Supposedly I have pywinrm installed but cannot > access it. > > On Wednesday, July 8, 2020 at 3:34:35 PM UTC-7, ameya agashe wrote: >> >> 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/18fd7184-dbba-4c81-94c1-605497c13577o%40googlegroups.com.
