The key you want to use is ‘ansible_winrm_server_cert_validation’, you were missing the server part https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#https-certificate-validation.
-- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a1d8fa1a-f38e-4d0d-8616-8caa9b73a81c%40googlegroups.com.