known_hosts module fails to set values with spurious error message #43157
Labels
affects_2.6
This issue/PR affects Ansible v2.6
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
The
known_hosts
module, when run in its default mode of adding entries to a file, fails with the error message "Host parameter does not match hashed host field in supplied key". This is not due to a problem with the key itself but rather in the way that the module writes the test file.ISSUE TYPE
COMPONENT NAME
known_hosts
ANSIBLE VERSION
CONFIGURATION
ANSIBLE_PIPELINING(/home/ghelling/.ansible.cfg) = True
ANSIBLE_SSH_ARGS(/home/ghelling/.ansible.cfg) = -o ControlMaster=auto -o ControlPersist=600s -o Identiti>
ANSIBLE_SSH_CONTROL_PATH(/home/ghelling/.ansible.cfg) = %(directory)s/%%h-%%r
ANSIBLE_SSH_CONTROL_PATH_DIR(/home/ghelling/.ansible.cfg) = /tmp
DEFAULT_CALLBACK_WHITELIST(/home/ghelling/.ansible.cfg) = ['timer', 'profile_tasks']
DEFAULT_FORKS(/home/ghelling/.ansible.cfg) = 10
DEFAULT_STDOUT_CALLBACK(/home/ghelling/.ansible.cfg) = yaml
HOST_KEY_CHECKING(/home/ghelling/.ansible.cfg) = False
OS / ENVIRONMENT
N/A
EXPECTED RESULTS
Module properly sets a valid SSH pubkey
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: