Hello EJ,
This is helpful info - also thanks for the reply. I does seem that it is a
permissions issue.
I almost got thing going - as root user i was able to insure that python3
(3.6) was installed - for python I have to use python3 mypythonfile.py.
As root, and umask 022, i installed anisible using pip3 install ansible
(when connected to internet)
As root I was able to verify that ansible was using python3 - ansible
--version, etc.
the path for ansible is now: /usr/local/bin/ansible.
So I thought I had it fixed - I logged off as root, logged on as standard
user.
tried to run ansible and I get this error:
Traceback (most recent call last):
File "/usr/local/bin/ansible", line 34, in <module>
from ansible import context
ModuleNotFoundError: No module named 'ansible'
I the UMASK is back to 077 - I will check your suggestions on permissions
in the /usr/local/lib/python3.6/site-packages/ansible file/directory and
in /usr/local/bin/ansible area.
Thanks again for the tips. I appreciate it.
I will get back with results.
thanks,
ewholz
On Wednesday, July 8, 2020 at 2:42:32 PM UTC-7, 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/ae058671-9f99-4d10-843f-a0738ecb1e3eo%40googlegroups.com.