mirror of https://github.com/ansible/ansible.git
Pipe it to connections (#73688)
* pipelining tweaks added 'defaults' entry for ini pipelining from ssh pluginpull/73728/head
parent
8628c12f30
commit
9690512069
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Restructured pipelining settings to be at the connection plugins leaving base config as global and for backwards compatiblity.
|
||||
@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2021 Ansible Project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
|
||||
class ModuleDocFragment(object):
|
||||
|
||||
# common shelldocumentation fragment
|
||||
DOCUMENTATION = """
|
||||
options:
|
||||
pipelining:
|
||||
default: ANSIBLE_PIPELINING
|
||||
description:
|
||||
- Pipelining reduces the number of connection operations required to execute a module on the remote server,
|
||||
by executing many Ansible modules without actual file transfers.
|
||||
- This can result in a very significant performance improvement when enabled.
|
||||
- However this can conflict with privilege escalation (become).
|
||||
For example, when using sudo operations you must first disable 'requiretty' in the sudoers file for the target hosts,
|
||||
which is why this feature is disabled by default.
|
||||
env:
|
||||
- name: ANSIBLE_PIPELINING
|
||||
ini:
|
||||
- section: defaults
|
||||
key: pipelining
|
||||
type: boolean
|
||||
vars:
|
||||
- name: ansible_pipelining
|
||||
"""
|
||||
Loading…
Reference in New Issue