From d606ad0bace478efd0f8b284cc73526119df5069 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 9 Dec 2019 17:10:11 +0100 Subject: [PATCH] ansible.cfg: do not enforce PreferredAuthentications There's no need to enforce PreferredAuthentications by default. Users can still choose to override the ansible.cfg with any additional parameter like this one to fit their infrastructure. Fixes: #4826 Signed-off-by: Guillaume Abrioux (cherry picked from commit d682412e2aa5eeb411cc0dff9a3ffef4b4aa8683) --- ansible.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index c31fa5cfa..b236f5734 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -30,8 +30,8 @@ timeout = 60 [ssh_connection] # see: https://github.com/ansible/ansible/issues/11536 control_path = %(directory)s/%%h-%%r-%%p -ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o PreferredAuthentications=publickey -pipelining = True +ssh_args = -o ControlMaster=auto -o ControlPersist=600s +pipelining = True # Option to retry failed ssh executions if the failure is encountered in ssh itself retries = 10 -- 2.47.3