You can do a ssh-keyscan and generate the production servers and make it into a known_hosts file, this will remove all your tests servers and keep production in there. Something like:
     ssh-keyscan -t rsa -H "<servername>,<servername2>,<servername3>" > ~/.ssh/known_hosts

Don't know if its what you want, but its an option.. ;p

Op vrijdag 27 februari 2015 21:31:26 UTC+1 schreef
Is it possible to set ANSIBLE_HOST_KEY_CHECKING on a per host or host
group basis? This would help prevent my known_hosts file from becoming
cluttered with test boxes but still ensure when I talk to production hosts
I can verify their identity.
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 8 | next ›
Discussion Overview
groupansible-project @
postedFeb 27, '15 at 8:31p
activeMar 5, '15 at 5:04p



site design / logo © 2022 Grokbase