Execute Ansible with ping module with host key checking disabled

ANSIBLE_HOST_KEY_CHECKING=False ansible all -m ping
As an alternative, you can add this option to ansible.cfg:
[defaults]
host_key_checking=False