From 72d3514408fc668221ec5262df5bcfb4f185e0e2 Mon Sep 17 00:00:00 2001 From: liquidat Date: Sun, 1 Sep 2019 01:56:02 +0200 Subject: [PATCH 1/3] Move pipelining option to ansible.cfg --- ansible.cfg | 1 + examples/hosts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible.cfg b/ansible.cfg index 48bc18c45..3f1f090b1 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,2 +1,3 @@ [defaults] retry_files_enabled = False +pipelining = True diff --git a/examples/hosts b/examples/hosts index b8997b777..d65cf7bb7 100644 --- a/examples/hosts +++ b/examples/hosts @@ -11,4 +11,4 @@ # consider adding an additional `ansible_connection=local` argument below. [matrix_servers] -matrix. ansible_host= ansible_ssh_user=root ansible_ssh_pipelining=yes +matrix. ansible_host= ansible_ssh_user=root From af834222afed76f4cbfe630ddc39df3c27c21531 Mon Sep 17 00:00:00 2001 From: liquidat Date: Sun, 1 Sep 2019 01:59:41 +0200 Subject: [PATCH 2/3] Move pipelining option to proper section --- ansible.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index 3f1f090b1..0ae274f73 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,5 @@ [defaults] retry_files_enabled = False + +[connection] pipelining = True From d90e11213f0d4bd0585b2264ad1d48ea9b43a354 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Mon, 2 Sep 2019 09:47:33 +0300 Subject: [PATCH 3/3] Update comment to make it accurate --- examples/hosts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/hosts b/examples/hosts index d65cf7bb7..3b14f09e4 100644 --- a/examples/hosts +++ b/examples/hosts @@ -4,8 +4,9 @@ # To connect using a non-root user (and elevate to root with sudo later), # replace `ansible_ssh_user=root` with something like this: `ansible_ssh_user=username become=true become_user=root` # -# For improved Ansible performance, SSH pipelining is enabled by default (`ansible_ssh_pipelining=yes`). -# If this causes SSH connection troubles, feel free to disable it. +# For improved Ansible performance, SSH pipelining is enabled by default in `ansible.cfg`. +# If this causes SSH connection troubles, disable it by adding `ansible_ssh_pipelining=False` +# to the host line below or by adding `ansible_ssh_pipelining: False` to your variables file. # # If you're running this Ansible playbook on the same server as the one you're installing to, # consider adding an additional `ansible_connection=local` argument below.