Technotes

Technotes for future me

Ansible pipelining

Ansible pipelining

Enabling pipelining reduces the number of SSH operations required to execute a module on the remote server,
by executing many ansible modules without actual file transfer.
This can result in a very significant performance improvement when enabled,
however when using “sudo:” operations you must first disable ‘requiretty’ in /etc/sudoers on all managed hosts.

By default, this option is disabled to preserve compatibility with sudoers configurations that have requiretty
(the default on many distros), but is highly recommended if you can enable it, eliminating the need for Accelerated Mode:

pipelining = False

[ssh_connection]
pipelining = True
control_path = /tmp/ansible-ssh-%%h-%%p-%%r
Last updated on 31 Jan 2021
Published on 11 Dec 2019
Edit on GitHub