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 :(
This commit is contained in:
saibotk 2021-05-30 17:02:29 +02:00
parent 72165e47ba
commit c2842b0f5b
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -6,6 +6,7 @@ vault_password_file = .vault_pass
[ssh_connection]
scp_if_ssh = true
transfer_method = scp
[privilege_escalation]
become_ask_pass = false