From b39cad5897ef80244e6496ccd5a6c5ec0cd577b6 Mon Sep 17 00:00:00 2001 From: Luke Meyer Date: Thu, 6 Jul 2017 18:01:12 -0400 Subject: ansible.cfg: improve ssh ControlPath AWS hosts and user names frequently make the default Ansible ControlPath too long. This prevents ssh persistent connections, significantly impacting runtime. More detail: https://github.com/ansible/ansible/issues/11536 This config change shortens the ControlPath to make this less likely. It would be better to change it to the %C hash, as extremely long hostnames or usernames could still encounter this problem, but that is not yet available with RHEL's openssh. This at least improves the situation. --- ansible.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ansible.cfg') diff --git a/ansible.cfg b/ansible.cfg index 0c74d63da..14b77ba0f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -29,3 +29,7 @@ nocows = True # Additional ssh options for OpenShift Ansible [ssh_connection] pipelining = True +# shorten the ControlPath which is often too long; when it is, +# ssh connection reuse silently fails, making everything slower. +control_path = %(directory)s/%%h-%%r + -- cgit v1.2.3