diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index e9f0ee6e87f..d8fb002ccc0 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -86,6 +86,7 @@ ANSIBLE_PIPELINING: - This can result in a very significant performance improvement when enabled. - "However this conflicts with privilege escalation (become). For example, when using 'sudo:' operations you must first disable 'requiretty' in /etc/sudoers on all managed hosts, which is why it is disabled by default." + - This options is disabled if ``ANSIBLE_KEEP_REMOTE_FILES`` is enabled. env: - name: ANSIBLE_PIPELINING - name: ANSIBLE_SSH_PIPELINING @@ -746,7 +747,9 @@ DEFAULT_JINJA2_NATIVE: DEFAULT_KEEP_REMOTE_FILES: name: Keep remote files default: False - description: Enables/disables the cleaning up of the temporary files Ansible used to execute the tasks on the remote. + description: + - Enables/disables the cleaning up of the temporary files Ansible used to execute the tasks on the remote. + - If this option is enabled it will disable ``ANSIBLE_PIPELINING``. env: [{name: ANSIBLE_KEEP_REMOTE_FILES}] ini: - {key: keep_remote_files, section: defaults} diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 1b3929a3a74..0a9b2b78a95 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -852,6 +852,7 @@ class ActionBase(with_metaclass(ABCMeta, object)): if self._is_pipelining_enabled(module_style): in_data = module_data + display.vvv("Pipelining is enabled.") else: cmd = remote_module_path