Skip to content

Instantly share code, notes, and snippets.

@retr0h
Created February 2, 2017 20:01
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 retr0h/ab0f1c8de9bbe73879212b42655e971e to your computer and use it in GitHub Desktop.
Save retr0h/ab0f1c8de9bbe73879212b42655e971e to your computer and use it in GitHub Desktop.
- name: Copy files
command: rsync --delay-updates -F --compress --archive --no-owner --no-group --no-perms --out-format='<<CHANGED>>%i %n%L' /etc/{{ item }} {{ files_path }}/{{ item }}
register: rsync_out
changed_when: rsync_out.stdout|default("") | search("CHANGED")
failed_when: false
with_items: "{{ files }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment