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:
parent
72165e47ba
commit
c2842b0f5b
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ vault_password_file = .vault_pass
|
||||||
|
|
||||||
[ssh_connection]
|
[ssh_connection]
|
||||||
scp_if_ssh = true
|
scp_if_ssh = true
|
||||||
|
transfer_method = scp
|
||||||
|
|
||||||
[privilege_escalation]
|
[privilege_escalation]
|
||||||
become_ask_pass = false
|
become_ask_pass = false
|
||||||
|
|
Loading…
Add table
Reference in a new issue