ansible/ansible — pull request #9652 by davidfritzsche (2014-11-27 17:02:19+00:00)
Title: Run sftp in in batch mode.

Normally, the return code of sftp is always 0, independent of failure
or success of the interactive commands. As a consequence put or get
errors in the ssh connection plugin are not detected right now if sftp
is used for file transport (which is the default). By switching to
batch mode the return code of sftp is nonzero if the put or get fails.