Debian Codegraph @

lib/ansible/plugins/doc_fragments/connection_pipelining.py

raw
1 # Copyright (c) 2021 Ansible Project
2 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
3 from __future__ import annotations
4
5
6 class ModuleDocFragment(object):
7
8 # common shelldocumentation fragment
9 DOCUMENTATION = """
10 options:
11 pipelining:
12 default: false
13 description:
14 - Pipelining reduces the number of connection operations required to execute a module on the remote server,
15 by executing many Ansible modules without actual file transfers.
16 - This can result in a very significant performance improvement when enabled.
17 - However this can conflict with privilege escalation (C(become)).
18 For example, when using sudo operations you must first disable C(requiretty) in the sudoers file for the target hosts,
19 which is why this feature is disabled by default.
20 env:
21 - name: ANSIBLE_PIPELINING
22 ini:
23 - section: defaults
24 key: pipelining
25 - section: connection
26 key: pipelining
27 type: boolean
28 vars:
29 - name: ansible_pipelining
30 """