Skip to content

Commit

Permalink
fix(setup): be sure to use rsync checksum option
Browse files Browse the repository at this point in the history
Files that were coincidentally timestamped the same (because NPM
packages all use the same 1985 timestamp), and had the same size
were not properly synchronized.
  • Loading branch information
michaelfig committed Nov 8, 2019
1 parent e90e6fe commit 584bc73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup/ansible/roles/copy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
path: "/usr/src/cosmic-workspace"
register: ws

- name: Synchronize install directory
- name: "Synchronize install directory {{APPDIR}}"
synchronize:
src: "{{APPDIR}}/"
dest: "/usr/src/cosmic-swingset/"
dirs: yes
delete: yes
checksum: yes
mode: push
rsync_opts:
- "--exclude=.git"
Expand All @@ -42,6 +43,7 @@
dest: "/usr/src/cosmic-workspace/"
dirs: yes
delete: yes
checksum: yes
mode: push
when: ws.stat.exists

Expand Down

0 comments on commit 584bc73

Please sign in to comment.