Interview Prep/Ansible/Cloud, AWX, Windows and Molecule

`ntlm: HTTPSConnectionPool(host='win01', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLCertVerificationError(...)))`

IntermediateTroubleshootingCloud, AWX, Windows and Molecule
Answer

Likely causes → The WinRM HTTPS listener uses a self-signed certificate, or a certificate from an internal CA that the controller does not trust, or a certificate whose CN does not match the name you connect with.

Fix → In production, issue listener certificates from the internal CA (through AD CS auto-enrolment) and trust that CA:

ansible_winrm_ca_trust_path: /etc/pki/tls/certs/corp-root-ca.pem

In a lab only, use ansible_winrm_server_cert_validation: ignore.

Prevent → Automate listener certificate provisioning with GPO or a bootstrap script, and connect by FQDN matching the certificate.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule