What is SSH pipelining and why does it help?
BeginnerProductionPerformance and Scale
Answer
Without pipelining, each task copies a module file to the target over SFTP/SCP and then runs it in a second SSH call. With pipelining = True, Ansible streams the module to the Python interpreter's stdin in a single SSH session, removing the transfer and cleanup steps and typically cutting task time by a third or more.
[ssh_connection]
pipelining = True
It is disabled by default because it requires that requiretty is not set in sudoers (an old RHEL default). It also avoids the temp-file permission issues when becoming unprivileged users.
More on Performance and Scale
Why can Ansible be slower than a shell script for 100 servers, and what dominates the time?BeginnerHow do you choose the `forks` value?BeginnerWhich SSH settings matter for performance and stability?IntermediateHow do you find out which tasks are slow?BeginnerHow do you reduce the cost of fact gathering?IntermediateWhat is Mitogen for Ansible and would you use it?Advanced