The setup facts module is looking for Python. I would comment more but am
away from systems. You have success in connecting to the host but it is
likely trying to run an ansible-ball file.

On Fri, Apr 29, 2022 at 7:05 AM John Carter <[email protected]> wrote:

> Hello. I am running AWX with ansible 2.9.18. I have it working with
> several hosts running Linux without issue. I wanted to test it with a
> Windows host.
> Windows host is Windows Pro x64 10.0.19044. I have OpenSSH installed on it
> and can SSH into it from the ansible host with keys. I also updated to
> Powershell 7 and .Net has 4.5 is installed and updated.
>
> The user, for the purposes of testing, is an Administrator user. The error
> logs indicate an SSH connection issue but I am not sure why. On the Windows
> 10 side, the SSH logs show the user connects and then the user disconnects.
> The server doesn't close the session.
>
> The part of the log (below) that stands out to me is:
> debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 3: not matched 'final'
> I am not sure what it is trying to match with this.
>
> Would someone be able to point me in the right direction to resolve this?
> I appreciate it.
>
> Here are the logs from the test playbook on AWX:
>
> TASK [Gathering Facts]
> *********************************************************
> task path:
> /tmp/bwrap_3532_q41e0hw1/awx_3532_85fcjjj9/project/baseline-tem.yml:15
> Using module file
> /usr/lib/python3.6/site-packages/ansible/modules/windows/setup.ps1
> Pipelining is enabled.
> <192.168.185.98> ESTABLISH SSH CONNECTION FOR USER: ansible
> <192.168.185.98> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto
> -o ControlPersist=60s -o StrictHostKeyChecking=no -o 'User="ansible"' -o
> ConnectTimeout=10 -o
> ControlPath=/tmp/bwrap_3532_q41e0hw1/awx_3532_85fcjjj9/cp/7506950686
> 192.168.185.98 'chcp.com 65001 >nul 2>&1 && PowerShell -NoProfile
> -NonInteractive -ExecutionPolicy Unrestricted -EncodedCommand
> UABvAHcAZQByAFMAaABlAGwAbAAgAC0ATgBvAFAAcgBvAGYAaQBsAGUAIAAtAE4AbwBuAEkAbgB0AGUAcgBhAGMAdABpAHYAZQAgAC0ARQB4AGUAYwB1AHQAaQBvAG4AUABvAGwAaQBjAHkAIABVAG4AcgBlAHMAdAByAGkAYwB0AGUAZAAgAC0ARQBuAGMAbwBkAGUAZABDAG8AbQBtAGEAbgBkACAASgBnAEIAagBBAEcAZwBBAFkAdwBCAHcAQQBDADQAQQBZAHcAQgB2AEEARwAwAEEASQBBAEEAMgBBAEQAVQBBAE0AQQBBAHcAQQBEAEUAQQBJAEEAQQArAEEAQwBBAEEASgBBAEIAdQBBAEgAVQBBAGIAQQBCAHMAQQBBAG8AQQBKAEEAQgBsAEEASABnAEEAWgBRAEIAagBBAEYAOABBAGQAdwBCAHkAQQBHAEUAQQBjAEEAQgB3AEEARwBVAEEAYwBnAEIAZgBBAEgATQBBAGQAQQBCAHkAQQBDAEEAQQBQAFEAQQBnAEEAQwBRAEEAYQBRAEIAdQBBAEgAQQBBAGQAUQBCADAAQQBDAEEAQQBmAEEAQQBnAEEARQA4AEEAZABRAEIAMABBAEMAMABBAFUAdwBCADAAQQBIAEkAQQB…
> <192.168.185.98> (1, b'{"exception":"The specified service does not exist
> as an installed service. \\r\\nAt line:63 char:44\\r\\n+ ... e_name] =
> $(Get-CimInstance -Namespace $namespace -ClassName $instanc ...\\r\\n+
>             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n
>    + CategoryInfo          : ObjectNotFound:
> (Root\\\\CIMV2:Win3...erConfiguration:String) [Get-CimInstance],
> CimException\\r\\n    + FullyQualifiedErrorId : HRESULT
> 0x80070424,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand\\r\\n\\r\\nScriptStackTrace:\\r\\nat
> Get-LazyCimInstance, \\u003cNo file\\u003e: line 63\\r\\nat
> \\u003cScriptBlock\\u003e, \\u003cNo file\\u003e: line
> 142\\r\\n\\r\\nMicrosoft.Management.Infrastructure.CimException: The
> specified service does not exist as an installed service. \\r\\n   at
> Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverProxyBase`1.ProcessNativeCallback(OperationCallbackProcessingContext
> callbackProcessingContext, T currentItem, …
> <192.168.185.98> Failed to connect to the host via ssh: OpenSSH_8.0p1,
> OpenSSL 1.1.1g FIPS  21 Apr 2020
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug3: /etc/ssh/ssh_config line 52: Including file
> /etc/ssh/ssh_config.d/05-redhat.conf depth 0
> debug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf
> debug2: checking match for 'final all' host 192.168.185.98 originally
> 192.168.185.98
> debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 3: not matched 'final'
> debug2: match not found
> debug3: /etc/ssh/ssh_config.d/05-redhat.conf line 5: Including file
> /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only)
> debug1: Reading configuration data
> /etc/crypto-policies/back-ends/openssh.config
> debug3: gss kex names ok:
> [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-,gss-gex-sha1-,gss-group14-sha1-]
> debug3: kex name…
> fatal: [Windows10Pro]: FAILED! => {
>     "ansible_facts": {},
>     "changed": false,
>     "failed_modules": {
>         "setup": {
>             "exception": "The specified service does not exist as an
> installed service. \r\nAt line:63 char:44\r\n+ ... e_name] =
> $(Get-CimInstance -Namespace $namespace -ClassName $instanc ...\r\n+
>           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n
>  + CategoryInfo          : ObjectNotFound:
> (Root\\CIMV2:Win3...erConfiguration:String) [Get-CimInstance],
> CimException\r\n    + FullyQualifiedErrorId : HRESULT
> 0x80070424,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand\r\n\r\nScriptStackTrace:\r\nat
> Get-LazyCimInstance, <No file>: line 63\r\nat <ScriptBlock>, <No file>:
> line 142\r\n\r\nMicrosoft.Management.Infrastructure.CimException: The
> specified service does not exist as an installed service. \r\n   at
> Microsoft.Management.Infrastructure.Internal.Operations.CimAsyncObserverP…
>
> --
> 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/63cbc553-e40b-4e89-a71a-2c4adcd020d4n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/63cbc553-e40b-4e89-a71a-2c4adcd020d4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
- Andrew "lathama" Latham -

-- 
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/CA%2Bqj4S9aF4kN_Fk590VPy_PVzxkb7yLqeCQiew3Yk9t%3D6jZRYA%40mail.gmail.com.

Reply via email to