diff --git a/services/ansible_openvpn/playbooks/fetch_rpi_data.yml b/services/ansible_openvpn/playbooks/fetch_rpi_data.yml index 47035df..c7e9e3b 100644 --- a/services/ansible_openvpn/playbooks/fetch_rpi_data.yml +++ b/services/ansible_openvpn/playbooks/fetch_rpi_data.yml @@ -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 }}' @@ -73,6 +85,7 @@ rsync_opts: - "--remove-source-files" - "--exclude='*.tmp'" + - "--exclude='yamnet_*'" - "--ignore-missing-args" - "--partial-dir=.rsync-partial" - name: Print stats