# Getting Error while running playbook

**URL:** <https://forum.ansible.com/t/getting-error-while-running-playbook/28609>\
**Category:** Ansible Project\
**Created:** [September 20, 2018, 6:53am UTC](https://forum.ansible.com/t/getting-error-while-running-playbook/28609 "2018-09-20T06:53:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SUMIT\_SAHAY](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@SUMIT\_SAHAY](https://forum.ansible.com/u/SUMIT_SAHAY)\
**Post date:** [September 20, 2018, 6:53am UTC](https://forum.ansible.com/t/getting-error-while-running-playbook/28609/1 "2018-09-20T06:53:36Z")

</div>

Hi All,

I am getting error while running the ansible playbook by using ssh command error is like **host key verification failed.**

Looking forward ro reply.

Thanks & Regards  
Sumit Sahay  
7044112109

---

<div class="post-metadata">

**Author:** ![Tchia04](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Post date:** [September 24, 2018, 2:30pm UTC](https://forum.ansible.com/t/getting-error-while-running-playbook/28609/2 "2018-09-24T14:30:02Z")

</div>

try adding this to your ansible.cfg  
host\_key\_checking=False

HOST\_KEY\_CHECKING:  
default: true  
description: Set this to “False” if you want to avoid host key checking by the underlying  
tools Ansible uses to connect to the host  
env:

- {name: ANSIBLE\_HOST\_KEY\_CHECKING}  
ini:
- {key: host\_key\_checking, section: defaults}  
name: Check host keys  
type: boolean
