@contextmanager<EOL>def host_key_checking(enable):
def as_string(b):<EOL><INDENT>return b and '<STR_LIT:True>' or '<STR_LIT:False>'<EOL><DEDENT>with environment_variable('<STR_LIT>', as_string(enable)):<EOL><INDENT>previous = ansible.constants.HOST_KEY_CHECKING<EOL>ansible.constants.HOST_KEY_CHECKING = enable<EOL>yield<EOL>ansible.constants.HOST_KEY_CHECKING = previous<EOL><DEDENT>
Temporarily disables host_key_checking, which is set globally.