2.0 host key check issues

I’ve noticed since I upgraded to 2.0 that something is wrong with host key checks when running ansible-playbook. Previously, under 1.9, if ansible-playbook encountered an unknown host key during the setup phase, it was present the standard OpenSSH host key prompt and pause to wait for user input. However, since 2.0 it now seems to continue with the next host even without any user input. This seems to cause issues as the run progresses and either causes the run to hang, or it just fails for the hosts with unknown keys. I have seen it wait at the prompt properly from time to time, but mostly I see the behaviour I just described.

Has anyone else noticed this issue?

I’d try running 1.9 against the very same host and see what happens, also, adding -vvvv may give some idea what’s happening too … it may just be a new config setting somewhere … this may be relevant too tho : https://github.com/ansible/ansible/issues/3694#issuecomment-22530734

Alex

2.0 does not lock known_hosts for updating ssh keys, 1.9 does, it is a
difficult issue as it needs to be locked to be consistent, but can end
up serializing the plays.