Hello,
Thanks for the ;reply. I am wondering where I would change the umask value? 
Just at user level? or system wide?
I have a similar install with pywinrm, python2, and ansible, and installed 
pywinrm, and it works fine. It is the red hat server that does not
find the winrm, urllib3 modules, etc - I can run a python progarm but it 
needs to be run as sudo.

When I try to install pywinrm (02.2.) on the redhat system it says all 
dependencies are already met. I am still stumped on how to get redhat winrm 
to work.

ewholz

P.S. I will check the umask on the Ubuntu server

On Saturday, July 11, 2020 at 6:28:15 AM UTC-7, ej wrote:
>
> This sounds like a problem that I ran into before.  Please check your 
> umask setting.  I suspect it is not 0022.  If it isn't, then trying 
> uninstalling pywinrm and requests, set the umask to 022, and then reinstall 
> pywinrm and requests with the umask set.  The modules should then have the 
> appropriate file and directory permissions so that non-root users can 
> acccess.
>
>
> On Friday, July 10, 2020 at 1:07:12 PM UTC-6, 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/f20b5053-120a-4ac6-ab1f-f32ec665a255o%40googlegroups.com.

Reply via email to