Ansible connection error: Failed to connect to the host via ssh

Ansible 2.3 error during ssh connection to host is one of the common error faced by most of the new users of ansible. The error looks like the below statement.

Check your Ansible version

You can fix this problem by make the following changes.

  • Add args of-c paramiko and remove the openssh-client on Ansible 2.3 and Alpine Linux 3.4.6.
  • else, add the change in your ansible.cfg file. Refer the following link.