diff options
author | 2022-01-16 16:13:40 +0000 | |
---|---|---|
committer | 2022-01-21 18:35:28 +0000 | |
commit | 24082645d933d360b21574938a18b79bef8a3cf8 (patch) | |
tree | 6a19bc2c75e5ef19c7687b7990d95cb0b1b07c9a | |
parent | Add 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.cfg | 3 |
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 |