Skip to content

Instantly share code, notes, and snippets.

@DavidMikeSimon
Created March 26, 2013 20:49
Show Gist options
  • Select an option

  • Save DavidMikeSimon/5249108 to your computer and use it in GitHub Desktop.

Select an option

Save DavidMikeSimon/5249108 to your computer and use it in GitHub Desktop.
- name: sync repository to target system
local_action: "command rsync -a -e ssh ${ENV(HOME)}/.ansible-cache-${name}
ubuntu@${ansible_hostname}:/home/ubuntu/ansible-cache-${name}"
TASK: [sync repository to target system] *********************
failed: [beatbox.actesting.org] => {"changed": true, "cmd": ["rsync", "-a", "-e", "ssh", "${ENV(HOME)}/.ansible-cache-${name}", "ubuntu@${ansible_hostname}:/home/ubuntu/ansible-cache-${name}"], "delta": "0:00:00.015967", "end": "2013-03-26 16:47:53.852129", "item": "", "rc": 255, "start": "2013-03-26 16:47:53.836162"}
stderr: ssh: Could not resolve hostname ${ansible_hostname}: 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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment