From 0e2bd66b4893b4b10c417ef339af2e025432369b Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 7 Nov 2024 11:48:11 -0800 Subject: [PATCH] Deprecated host_key_checking option * User can set host_key_checking configuration from connection plugins such as ssh and paramiko_ssh itself. Deprecate host_key_checking from global configuration. Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/deprecate_host_key_checking.yml | 3 +++ lib/ansible/config/base.yml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/deprecate_host_key_checking.yml diff --git a/changelogs/fragments/deprecate_host_key_checking.yml b/changelogs/fragments/deprecate_host_key_checking.yml new file mode 100644 index 00000000000..d039626eb24 --- /dev/null +++ b/changelogs/fragments/deprecate_host_key_checking.yml @@ -0,0 +1,3 @@ +--- +bugfixes: + - config - deprecate host_key_checking from the global configuration. diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index f0d6f2b684f..74416d40fe1 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -1538,7 +1538,6 @@ GALAXY_COLLECTION_IMPORT_POLL_FACTOR: version_added: "2.18" HOST_KEY_CHECKING: # NOTE: constant not in use by ssh/paramiko plugins anymore, but they do support the same configuration sources - # TODO: check non ssh connection plugins for use/migration name: Toggle host/key check default: True description: @@ -1548,6 +1547,10 @@ HOST_KEY_CHECKING: ini: - {key: host_key_checking, section: defaults} type: boolean + deprecated: + why: This option was moved to the individual plugin itself + version: "2.22" + alternatives: Use the option from the plugin itself. HOST_PATTERN_MISMATCH: name: Control host pattern mismatch behaviour default: 'warning'