Just read the below error message:
ssh: Could not resolve hostname centosinstance: Name or service not known
Ansible can't be able to resolve the centosinstance hostname.
Modify your inventory like this:
Change the ip addresses with the ip addresses of your machines and try one more time.
Hope that help it will resolve your problem.