Our ansibe playbook was running fine under ansible 1.2.3.
After we upgraded ansible server to 1.3.2/3, the fetch command is running much much slower. Check the EC2 instance where ansible server installed, the CPU usage is hanging on 99% or above for very very long time.
The file size to fetch is about 54 MB. it was taking seconds to fetch at 1.2.3, but now it takes more than 15 minutes at 1.3.3
I believe the mechanism by with fetch works was changed between these releases so it would support working through sudo. I’m not sure of all the details though…
Are you trying to fetch a very large file with sudo?
I would suggest not doing that.
You see, SFTP/SCP doesn’t normally even support sudo, so with “fetch”, we pull that file into RAM, and it’s expected to be used with small files, if you are sudoing.
But you shouldn’t attempt to pull big files with sudo for sure.
Could it set up a temporary fileserver and stream it? Totally, though a lot of work would be involved. I am open to patches but I don’t see it being an immediate priority for us just because fetch is not frequently used.
After we remove the sudo for fetch command, the speed is super-fast now. So I think that our work-around will be to not use “sudo” for the fetch command.