I am trying to add a known host to a known_hosts file using ansible
vagrant@jedi:/vagrant$ ansible web -m known_hosts -a "name=web state=present"
paramiko: The authenticity of host 'web' can't be established.
The ssh-rsa key fingerprint is afb8cf4885468badb1a7b8afc16ac211.
Are you sure you want to continue connecting (yes/no)?
I will receive a hint as above.
I thought this module took care of this? Otherwise, I have to make keyscan weband add it to the known_hosts file.
What am I doing wrong or misunderstanding?
source
share