Hi All,
I am running a playbook (from AWX) against a Windows Server 2016 and it is failing with:-
{
"msg": "basic: the specified credentials were rejected by the server",
"unreachable": true,
"changed": false
}
I am using winrm as the transport and am now going using basic authentication over http.
My winrm config (winrm get winrm/config) is as follows:-
Config
MaxEnvelopeSizekb = 500
MaxTimeoutms = 60000
MaxBatchItems = 32000
MaxProviderRequests = 4294967295
Client
NetworkDelayms = 5000
URLPrefix = wsman
AllowUnencrypted = true
Auth
Basic = true
Digest = true
Kerberos = true
Negotiate = true
Certificate = true
CredSSP = false
DefaultPorts
HTTP = 5985
HTTPS = 5986
TrustedHosts
Service
RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
MaxConcurrentOperations = 4294967295
MaxConcurrentOperationsPerUser = 1500
EnumerationTimeoutms = 240000
MaxConnections = 300
MaxPacketRetrievalTimeSeconds = 120
AllowUnencrypted = true
Auth
Basic = true
Kerberos = true
Negotiate = true
Certificate = false
CredSSP = false
CbtHardeningLevel = Relaxed
DefaultPorts
HTTP = 5985
HTTPS = 5986
IPv4Filter = *
IPv6Filter = *
EnableCompatibilityHttpListener = false
EnableCompatibilityHttpsListener = false
CertificateThumbprint
AllowRemoteAccess = true
Winrs
AllowRemoteShellAccess = true
IdleTimeout = 7200000
MaxConcurrentUsers =
2147483647 MaxShellRunTime =
2147483647 MaxProcessesPerShell =
2147483647 MaxMemoryPerShellMB =
2147483647 MaxShellsPerUser =
2147483647
The following group_vars are set:-
ansible_winrm_transport: basic
ansible_winrm_scheme: http
ansible_ssh_port: 5985
ansible_winrm_server_cert_validation: ignore
oh and the playbook run also generates a security event (id 4625) on the managed node as follows:-
Failure Information:
Failure Reason: Unknown user name or bad password.
Status: 0xC000006D
Sub Status: 0xC0000064
The password is correctly stored in the AWX credential. I'm at a loss as to the problem
Any pointers will be greatly appreciated as i have googled this to death
Kind Regards
Chris.