mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Enable host_key checking at the strategy level
Implements a new method in the ssh connection plugin (fetch_and_store_key) which is used to prefetch the key using ssh-keyscan.
This commit is contained in:
@@ -23,11 +23,11 @@ __metaclass__ = type
|
||||
import fcntl
|
||||
import gettext
|
||||
import os
|
||||
|
||||
from abc import ABCMeta, abstractmethod, abstractproperty
|
||||
|
||||
from functools import wraps
|
||||
from ansible.compat.six import with_metaclass
|
||||
|
||||
from ansible.compat.six import with_metaclass
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins import shell_loader
|
||||
@@ -233,3 +233,4 @@ class ConnectionBase(with_metaclass(ABCMeta, object)):
|
||||
f = self._play_context.connection_lockfd
|
||||
fcntl.lockf(f, fcntl.LOCK_UN)
|
||||
display.vvvv('CONNECTION: pid %d released lock on %d' % (os.getpid(), f))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user