From 41cc4f9043ecd06d09e3bfaba9ebc728814bc79f Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 7 Apr 2025 11:15:09 -0700 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 | 4 ++++ 2 files changed, 7 insertions(+) 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..b1e4e93c1bb --- /dev/null +++ b/changelogs/fragments/deprecate_host_key_checking.yml @@ -0,0 +1,3 @@ +--- +deprecated_features: + - config - deprecate host_key_checking from the global configuration. diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index 72f31b8d802..70d302f6a73 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -1551,6 +1551,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'