Revert "Update docs and example config for requiretty + pipelining change"

This reverts commit f873cc0fb5.

Reverting pipelining change for now due to hard to pin down bugs: #13410  #13411
This commit is contained in:
Toshio Kuratomi 2015-12-03 07:59:23 -08:00
parent e00012994e
commit 9caa2b0452
2 changed files with 13 additions and 20 deletions

View file

@ -799,22 +799,15 @@ pipelining
========== ==========
Enabling pipelining reduces the number of SSH operations required to 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. 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. This can result in a very significant performance improvement when enabled, however when using "sudo:" operations you must
As of Ansible 2.1.0 this option is enabled by default. first disable 'requiretty' in /etc/sudoers on all managed hosts.
In previous versions, this option was disabled because of a bad interaction By default, this option is disabled to preserve compatibility with
with some sudo configurations. If sudo was configured to 'requiretty' for sudoers configurations that have requiretty (the default on many distros), but is highly
operation then pipelining would not work and ansible would fail to connect recommended if you can enable it, eliminating the need for :doc:`playbooks_acceleration`::
properly. This could be remedied by removing 'requiretty' in /etc/sudoers on
all managed hosts.
It is recommended to leave this option enabled. If you are stuck with an old pipelining=False
version of ansible your first choice option should be to remove requiretty
from the sudoers configuration and only disable pipelining if you cannot do
that. Enabling this eliminates the need for :doc:`playbooks_acceleration`::
pipelining=True
.. _accelerate_settings: .. _accelerate_settings:

View file

@ -226,13 +226,13 @@
# Enabling pipelining reduces the number of SSH operations required to # Enabling pipelining reduces the number of SSH operations required to
# execute a module on the remote server. This can result in a significant # execute a module on the remote server. This can result in a significant
# performance improvement when enabled. It is enabled by default. # performance improvement when enabled, however when using "sudo:" you must
# first disable 'requiretty' in /etc/sudoers
# #
# In previous versions of ansible this was defaulted to off as it was # By default, this option is disabled to preserve compatibility with
# incompatible with sudo's requiretty option. Ansible 2.1 and above contain # sudoers configurations that have requiretty (the default on many distros).
# a fix for that problem. #
# #pipelining = False
#pipelining = True
# if True, make ansible use scp if the connection type is ssh # if True, make ansible use scp if the connection type is ssh
# (default is sftp) # (default is sftp)