Haven't used it myself as I only manage Linux hosts but
https://docs.ansible.com/ansible/latest/user_guide/windows_faq.html#can-i-connect-to-windows-hosts-over-ssh
is relevant to your query.

Richard.

On Fri, 24 May 2019 at 08:52, John Harmon <[email protected]> wrote:

> I am assuming it isn't quite baked yet.  The ControlPath and other things
> look to be all linux-based (ie. /bin/sh).
>
> TASK [Gathering Facts]
> *******************************************************************************************************************************************************************************************************************
> task path: /etc/ansible/playbooks/one-offs/windows/test.yml:3
> <win10> Attempting python interpreter discovery
> <win10> ESTABLISH SSH CONNECTION FOR USER: john
> <win10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o
> StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o 'User="john"' -o ConnectTimeout=10 -o
> ControlPath=/root/.ansible/cp/a2a184ae5b win10 '/bin/sh -c '"'"'echo
> PLATFORM; uname; echo FOUND; command -v
> '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v
> '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
> <win10> (1, '', 'The system cannot find the path specified.\r\n')
> <win10> Failed to connect to the host via ssh: The system cannot find the
> path specified.
>  [WARNING]: Unhandled error in Python interpreter discovery for host win10
> : unexpected output from Python interpreter discovery
>
> <win10> Interpreter discovery remote stderr:
> The system cannot find the path specified.
>
> Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/
> setup.py
> Pipelining is enabled.
> <win10> ESTABLISH SSH CONNECTION FOR USER: john
> <win10> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o
> StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
> PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
> -o PasswordAuthentication=no -o 'User="john"' -o ConnectTimeout=10 -o
> ControlPath=/root/.ansible/cp/a2a184ae5b win10 '/bin/sh -c '"'"'sudo -H
> -S -n  -u john /bin/sh -c '"'"'"'"'"'"'"'"'echo
> BECOME-SUCCESS-wwkxsloatrpecpvtnxmjliczqzkrfzle ;
> /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
> <win10> (1, '', 'The system cannot find the path specified.\r\n')
> <win10> Failed to connect to the host via ssh: The system cannot find the
> path specified.
> fatal: [win10]: FAILED! => {
>     "ansible_facts": {},
>     "changed": false,
>     "msg": "The following modules failed to execute: setup\n  setup:
> MODULE FAILURE\nSee stdout/stderr for the exact error\n"
> }
>
>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/820a7b12-6642-4577-9f9b-fc92c9b87021%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/820a7b12-6642-4577-9f9b-fc92c9b87021%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAAy0hwdHjfs90LrhCa3Ddis85SiWMQqPUARie1DjANj7c-t%2Byg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to