summaryrefslogtreecommitdiffstats
path: root/lib/ansible/plugins/doc_fragments/connection_pipelining.py
blob: fa18265832d35b08878f94e476b4d605aab0b5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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: false
          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
            - section: connection
              key: pipelining
          type: boolean
          vars:
            - name: ansible_pipelining
"""