From b5edd42037e37d7f32f8901708b537e168862bff Mon Sep 17 00:00:00 2001 From: nicolas-f <1382241+nicolas-f@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:11:14 +0200 Subject: [PATCH] Update fetch_rpi_data.yml sync mem on slow --- .../playbooks/fetch_rpi_data.yml | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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