title: unable to ssh login to new vm with Ansible?
body: <p>I am not able to login with ssh with Ansible on a newly created VM. I am getting below error </p>
  
  <blockquote>
    <p>UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the
    host via ssh:
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n@<br>
    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!<br>
    @\r\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\nIT
    IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\r\nSomeone could be
    eavesdropping on you right now (man-in-the-middle attack)!\r\nIt is
    also possible that a host key has just been changed.\r\nThe
    fingerprint for the ECDSA key sent by the remote host
    is\nSHA256:V48LPZh5wKQhWTF456KVN24LQLYOESAKmJgdKCe6Eho.\r\nPlease
    contact your system administrator.\r\nAdd correct host key in
    /home/naresh-openkey/.ssh/known_hosts to get rid of this
    message.\r\nOffending ECDSA key in
    /home/naresh-openkey/.ssh/known_hosts:128\r\n  remove with:\r\n 
    ssh-keygen -f \"/home/naresh-openkey/.ssh/known_hosts\" -R
    12.44.343.64\r\nPassword authentication is disabled to avoid man-in-the-middle attacks.\r\nKeyboard-interactive authentication is
    disabled to avoid man-in-the-middle attacks.\r\nPermission denied
    (publickey,password).", "unreachable": true}</p>
  </blockquote>
  
  <p>I tried below solution </p>
  
  <ul>
  <li><p>export the key </p>
  
  <p>export ANSIBLE_HOST_KEY_CHECKING=False</p></li>
  <li><p>Add <code>ANSIBLE_HOST_KEY_CHECKING=False</code> in /etc/ansible/ansible.cfg under <code>[defaults]</code></p></li>
  </ul>
  
  <p>I am using a custom <code>inventory.yaml</code> </p>