From 9e686c729452a9bba500951e01f098330131bb22 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 22 Jan 2016 09:59:38 -0600 Subject: [PATCH] Add note about precautions of using become with fetch. Addresses https://github.com/ansible/ansible/issues/14064 --- lib/ansible/modules/files/fetch.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/modules/files/fetch.py b/lib/ansible/modules/files/fetch.py index d0b1371c30..4ca191b812 100644 --- a/lib/ansible/modules/files/fetch.py +++ b/lib/ansible/modules/files/fetch.py @@ -68,6 +68,13 @@ requirements: [] author: - "Ansible Core Team" - "Michael DeHaan" +notes: + - When running fetch with C(become), the M(slurp) module will also be + used to fetch the contents of the file for determining the remote + checksum. This effectively doubles the transfer size, and + depending on the file size can consume all available memory on the + remote or local hosts causing a C(MemoryError). Due to this it is + advisable to run this module without C(become) whenever possible. ''' EXAMPLES = '''