From d23226a6f4737fb17b7b1be0d09f39e249832c7f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 1 Nov 2021 10:49:48 -0400 Subject: [PATCH] deprecate scp_if_ssh (#75218) * deprecate scp_if_ssh Co-authored-by: Matt Martz --- changelogs/fragments/deprecate_scp_if_ssh.yml | 2 ++ lib/ansible/plugins/connection/ssh.py | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/deprecate_scp_if_ssh.yml diff --git a/changelogs/fragments/deprecate_scp_if_ssh.yml b/changelogs/fragments/deprecate_scp_if_ssh.yml new file mode 100644 index 00000000000..b2425e019dd --- /dev/null +++ b/changelogs/fragments/deprecate_scp_if_ssh.yml @@ -0,0 +1,2 @@ +deprecated_features: + - ssh connection plugin option scp_if_ssh in favor of ssh_transfer_method. diff --git a/lib/ansible/plugins/connection/ssh.py b/lib/ansible/plugins/connection/ssh.py index fe47ae05d95..32b03f16bda 100644 --- a/lib/ansible/plugins/connection/ssh.py +++ b/lib/ansible/plugins/connection/ssh.py @@ -289,6 +289,10 @@ DOCUMENTATION = ''' - name: ansible_ssh_transfer_method version_added: '2.12' scp_if_ssh: + deprecated: + why: In favor of the "ssh_transfer_method" option. + version: "2.17" + alternatives: ssh_transfer_method default: smart description: - "Preferred method to use when transfering files over SSH."