From 098d0a66c3fe0fe0c109537b8de5cfd292f50f63 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Wed, 4 Nov 2026 21:59:58 +0100 Subject: [PATCH] Enable ansible pipelining for plays by default Without pipelining every task copies the module to the node over sftp, then makes it executable, runs it and removes it, each a separate ssh operation. With pipelining the module is fed to the interpreter over the ssh session, so a task takes one operation and nothing is written to the node's temporary directory. Pipelining breaks become through sudo with requiretty, which rarely applies here: plays connect as root and drop become unless become_user is set. Setting ANSIBLE_PIPELINING or ANSIBLE_SSH_PIPELINING still overrides this default. --- confluent_server/confluent/runansible.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/runansible.py b/confluent_server/confluent/runansible.py index e2b11357..c31f7188 100644 --- a/confluent_server/confluent/runansible.py +++ b/confluent_server/confluent/runansible.py @@ -198,6 +198,9 @@ class PlayRunner(object): if 'serveraliveinterval' not in ansiblesshargs.lower(): ansiblesshargs += ' -o ServerAliveInterval=15 -o ServerAliveCountMax=4' localenv['ANSIBLE_SSH_ARGS'] = ansiblesshargs + # feed modules over the ssh session rather than copying them over first + if 'ANSIBLE_PIPELINING' not in localenv and 'ANSIBLE_SSH_PIPELINING' not in localenv: + localenv['ANSIBLE_PIPELINING'] = 'True' with feedback: for playfilename in self.playfiles: worker = await asyncio.create_subprocess_exec(