Hello all,
we have been trying to get the Ansible to execute successfully within our environment. However, despite working WinRM-Listeners, we had not been successful as Ansible kept reporting the credentials were rejected by the server.
The fix was to explicitely state ansible_winrm_transport: ntlm in inventory.ini like so:
ungrouped:
hosts:
honeypotCA:
# Ansible connection parameters
ansible_connection: winrm
ansible_port: 5985
ansible_winrm_server_cert_validation: ignore
ansible_winrm_operation_timeout_sec: 400
ansible_winrm_read_timeout_sec: 500
ansible_winrm_transport: ntlm
Perhaps other people have this same issue and it could be worth including this in the documentation/default inventory.ini?
Kind regards,
Gearanach