From c2842b0f5b039961c2ae8248c691c1a1105063f3 Mon Sep 17 00:00:00 2001 From: saibotk Date: Sun, 30 May 2021 17:02:29 +0200 Subject: [PATCH] Ansible: Set transfer method to scp explicitly This fixes the warnings for the sftp transfer mechanism failing, when sftp is disabled on all hosts using the ssh hardening role. This should usually be covered with the scp_if_ssh option but it seems like this option is ignored on newer Ansible versions. Which sadly was not mentioned in any changelog :( --- ansible.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible.cfg b/ansible.cfg index 78f8d0c..eba18a7 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -6,6 +6,7 @@ vault_password_file = .vault_pass [ssh_connection] scp_if_ssh = true +transfer_method = scp [privilege_escalation] become_ask_pass = false