Skip to content

Instantly share code, notes, and snippets.

@gembin
Forked from maxim/tasks.yml
Created December 10, 2015 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gembin/e0e0d39282b0baf5f697 to your computer and use it in GitHub Desktop.
Save gembin/e0e0d39282b0baf5f697 to your computer and use it in GitHub Desktop.
Copy file on remote machine in ansible
- name: ensure file exists at path
shell: rsync -ci /source/path /destination/path
register: rsync_result
changed_when: "rsync_result.stdout != ''"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment