Skip to content

Instantly share code, notes, and snippets.

@ahtik
Created October 11, 2013 20:13
Show Gist options
  • Save ahtik/6941277 to your computer and use it in GitHub Desktop.
Save ahtik/6941277 to your computer and use it in GitHub Desktop.
# USER root in command (constructed by ansible):
/bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible,key=XXX] password: " -u root /bin/sh -c '"'"'rsync -e ssh -av --stats --delete ../requirements.txt mgeu1:/var/projects/memgrid/code/'"'"''
ssh: Could not resolve hostname mgeu1: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
# USER ahtik in command:
/bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible,key=XXX] password: " -u ahtik /bin/sh -c '"'"'rsync -e ssh -av --stats --delete ../requirements.txt mgeu1:/var/projects/memgrid/code/'"'"''
sending incremental file list
Number of files: 1
Number of files transferred: 0
Total file size: 630 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 47
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 60
Total bytes received: 12
sent 60 bytes received 12 bytes 28.80 bytes/sec
total size is 630 speedup is 8.75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment