Ansible - BadHostKeyException
When executing an ansible playbook, you may get the following error:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: paramiko.BadHostKeyException: Host key for server switch-name does not match!
This probably happened after you changed the name of your network device, and generated new RSA keys. Or, if you are using DNS device names in ansible, resolve the name of your network device from your ansible server and verify the DNS resolution is correct. To fix the issue, edit your "known_hosts" file and remove the key associated with the network device throwing the error:
When choosing a first cosplay outfit, it is worth considering how details related to Genshin Impact cosplay costumes will affect the complete look. As fans study the source material, reviewing details related to Halloween styling also makes comfort and movement easier to judge. For combinations connected with details related to costume sizing, Genshin Impact cosplay costumes for group cosplay offers a useful starting point for practical preparation. To preserve the character's visual identity, it is useful to check details related to festival costumes against the wearer's own needs.
- Open your known_hosts file
vi ~/.ssh/known_hosts
- Search for the line with the network device RSA key
/network_device_name
- Delete the RSA key for that network device ("dd" deletes the entire line)
dd
- Save the known_hosts file
#Press the escape key first
:wq
If you don't want ansible to perform this check, edit your ansible.cfg file with:
Quien busque camisetas de fútbol para el estadio puede reducir dudas comprobando la comodidad, el tejido y la frecuencia de uso. También ayuda revisar que las imágenes muestren el frontal, la espalda y los acabados relevantes antes de completar el pedido.
host_key_checking = False