From 65eaa031ddf20d10294a4d2d876a49f7abcc624d Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Fri, 6 Sep 2024 12:22:28 -0700 Subject: [PATCH] Speed up deploys with Ansible's pipelining option The main bottleneck for us is still just uploading the full source code, there might be some clever option I'm not using for that yet of like, compression or something? But this change did take the process down from like 5 minutes to 3 minutes, so, works for me! --- deploy/ansible.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/ansible.cfg b/deploy/ansible.cfg index e9fa9c2c..61b50e17 100644 --- a/deploy/ansible.cfg +++ b/deploy/ansible.cfg @@ -1,2 +1,7 @@ [defaults] inventory = inventory.cfg + +[ssh_connection] +# Pipelining is an optimization that's off by default for compatibility, but runs +# playbooks much faster when it's available. It works in our case, so use it! +pipelining = True