From 24082645d933d360b21574938a18b79bef8a3cf8 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 16 Jan 2022 16:13:40 +0000 Subject: Enable ansible ssh pipelining globally See https://github.com/ansible/ansible/issues/16048#issuecomment-229012509 for why we do this. The drawback of this is that it is incompatible with sudo's requiretty setting (or su, which always requires a tty). This is because of a quirk of the Python interpreter, which enters interactive mode automatically when you pipe in data from a (pseudo) tty. However, modern Debian, which we run, comes with requiretty disabled. --- ansible.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index 3440f18..e1faee5 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -4,3 +4,6 @@ vault_password_file = ./vault_passwords [privilege_escalation] become = yes + +[connection] +pipelining = True -- cgit v1.2.3