# set host\_key\_checking = False in awx

**URL:** <https://forum.ansible.com/t/set-host-key-checking-false-in-awx/28455>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 29, 2018, 10:27am UTC](https://forum.ansible.com/t/set-host-key-checking-false-in-awx/28455 "2018-08-29T10:27:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cava\_cavamagie](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Post date:** [August 29, 2018, 10:27am UTC](https://forum.ansible.com/t/set-host-key-checking-false-in-awx/28455/1 "2018-08-29T10:27:16Z")

</div>

hi  
i have problem with host key  
ho i can set

host\_key\_checking = False

without modify the docker machine task?

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [August 29, 2018, 12:41pm UTC](https://forum.ansible.com/t/set-host-key-checking-false-in-awx/28455/2 "2018-08-29T12:41:28Z")

</div>

AWX sets this to false by default via an environment variable. Environment variables overwrite any settings loaded from the config file (i.e. ansible.cfg).

---

<div class="post-metadata">

**Author:** ![cava\_cavamagie](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cava\_cavamagie](https://forum.ansible.com/u/cava_cavamagie)\
**Post date:** [August 29, 2018, 3:40pm UTC](https://forum.ansible.com/t/set-host-key-checking-false-in-awx/28455/3 "2018-08-29T15:40:55Z")

</div>

yes thank you i have made a mistake !

fatal: [ansiblelab02xxxxxxx]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\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 RSA key sent by the remote host is\nSHA256:a+cHs7PtOmZF/V1Df88GxDskjP1WiPSIDpKUR6dN1m0.\r\nPlease contact your system administrator.\r\nAdd correct host key in /root/.ssh/known\_hosts to get rid of this message.\r\nOffending ECDSA key in /root/.ssh/known\_hosts:5\r\nChallenge/response authentication is disabled to avoid man-in-the-middle attacks.\r\nPermission denied (publickey,password).\r\n”, “unreachable”: true}
