aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-01-16 16:13:40 +0000
committerGravatar Joe Banks <[email protected]>2022-01-21 18:35:28 +0000
commit24082645d933d360b21574938a18b79bef8a3cf8 (patch)
tree6a19bc2c75e5ef19c7687b7990d95cb0b1b07c9a
parentAdd ufw role to playbook (diff)
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.
-rw-r--r--ansible.cfg3
1 files changed, 3 insertions, 0 deletions
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