Skip to content

Commit 50f8b32

Browse files
authored
ansible: fix ssh_connection options for OpenSSH 9.0 (#3361)
Refs: ansible/ansible#78600
1 parent 349887d commit 50f8b32

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ansible.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ retry_files_enabled = False
99
roles_path = ansible/roles
1010
squash_actions = apk
1111

12-
12+
# Documentation: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ssh_connection.html
13+
[ssh_connection]
1314
# Pass an empty path to ssh so it doesn't read config. We don't need it
1415
# since we have all information available.
15-
[ssh_connection]
1616
ssh_args = -F /dev/null -o ControlMaster=auto -o ControlPersist=60s
17+
transfer_method = scp
18+
# Needed for OpenSSH >=9.0.
19+
scp_extra_args = -O
20+
# Legacy option, replaced by transfer_method.
1721
scp_if_ssh = True
1822

1923
[privilege_escalation]

0 commit comments

Comments
 (0)