Failed to connect to the host via ssh: Host key verification failed.\r\n


Getting error when i try to connect to hosts in ansible

I am able to ping ssh_connection in local host (ansible), but not in jenkins pipeline build.

I have tried almost everything.

Can you please help me regarding this…


In your ansible config file /var/lib/jenkins/workspace/FPipeline/ansible.cfg add below line and test it again.

Leave a Reply