Skip to content

Commit

Permalink
Update fetch_rpi_data.yml
Browse files Browse the repository at this point in the history
sync mem on slow
  • Loading branch information
nicolas-f authored Sep 25, 2024
1 parent 9254208 commit b5edd42
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions services/ansible_openvpn/playbooks/fetch_rpi_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,33 @@
- "--stats"
- "--partial-dir=.rsync-partial"
register: rsync_stats
- name: data synchronization (exclude audio) for slow bandwidth rpi
when: rpi_mac.stdout in disabled_sync
- name: data synchronization out sd
when: rpi_mac.stdout not in disabled_sync
ansible.posix.synchronize:
mode: 'pull'
src: '{{ source2 }}'
dest: '{{ destination }}{{ year_week.stdout }}/{{ rpi_mac.stdout }}'
rsync_timeout: 30
rsync_opts:
- "--remove-source-files"
- "--exclude='*.tmp'"
- "--ignore-missing-args"
- "--partial-dir=.rsync-partial"
- name: data synchronization mem (exclude audio) for slow bandwidth rpi
when: rpi_mac.stdout in disabled_sync
ansible.posix.synchronize:
mode: 'pull'
src: '{{ source }}'
dest: '{{ destination }}{{ year_week.stdout }}/{{ rpi_mac.stdout }}'
rsync_timeout: 30
rsync_opts:
- "--remove-source-files"
- "--exclude='*.tmp'"
- "--exclude='yamnet_*'"
- "--ignore-missing-args"
- "--partial-dir=.rsync-partial"
- name: data synchronization out sd
when: rpi_mac.stdout not in disabled_sync
- name: data synchronization sdcard (exclude audio) for slow bandwidth rpi
when: rpi_mac.stdout in disabled_sync
ansible.posix.synchronize:
mode: 'pull'
src: '{{ source2 }}'
Expand All @@ -73,6 +85,7 @@
rsync_opts:
- "--remove-source-files"
- "--exclude='*.tmp'"
- "--exclude='yamnet_*'"
- "--ignore-missing-args"
- "--partial-dir=.rsync-partial"
- name: Print stats
Expand Down

0 comments on commit b5edd42

Please sign in to comment.