When you ping a remote device with any of the remote Ad-Hoc commands as shown below, the above error will be prompted.
ansible win -m win_ping
ansible all -i hosts -m win_ping
The error above occurs when the host inventory file isn’t correctly configured. In the /etc/ansible/hosts file, you didn’t specify the password, and you didn’t set Ansible WinRM server cert validation to ignore. This behavior is intentional.
- ansible_pass=SecretPasswordGoesHere - ansible_winrm_server_cert_validation=ignore
Ansible SSL Authentication Error
Complete the host file as shown above. When this these parameters are entered correctly, the following errors will no longer be prompted.
I hope you found this blog post on Ansible SSL Authentication Error helpful. If you have any questions, please let me know in the comment session.