Thanks for the reply Sebastian.

It(backup.yml) is a inbuilt module provided in the ansible bundle. It is 
also running fetch.py during the download 

 File "/usr/lib/python2.7/site-packages/ansible/plugins/action/fetch.py", 
line 95, in run

    slurpres = self._execute_module(module_name='slurp', 
module_args=dict(src=source), task_vars=task_vars)


On Thursday, March 28, 2019 at 8:15:06 PM UTC-4, Sebastian Meyer wrote:
>
> Hi, 
>
> On 29.03.19 00:55, Sindhuja Koneru wrote: 
> > '"'"'/usr/bin/python 
> > /root/.ansible/tmp/ansible-tmp-1553783711.94-90505061625143/slurp.py && 
> > sleep 0'"'"'' 
>
> Any reason you are using slurp and not fetch? 
>
> slurp reads the whole file into memory, afterwards it does base64 
> encoding still in memory, and then transfers the content. 
>
> This is basically what happens in slurp: 
>
> --- 
> $ python 
> Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> import base64 
> >>> import os 
> >>> with open('/isos/rhel-server-5.11-x86_64-dvd.iso', 'rb') as source: 
> ...   source_content = source.read() 
> ... 
> >>> data = base64.b64encode(source_content) 
> >>> 
> --- 
>
> My testfile is a 4.2GB and ram usage for that single python process goes 
> up to 12.5GB before settling at 9.7GB. 
>
> Sooooo you might not have enough RAM on the system you're slurping the 
> file from. 
>
> Sebastian 
>
> -- 
> Sebastian Meyer 
> Linux Consultant & Trainer 
> Mail: [email protected] <javascript:> 
>
> B1 Systems GmbH 
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de 
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7cf0f05d-5466-4fba-be14-c4bf3aa7be35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to