Skip to content

Commit

Permalink
change strategy, just disable fetching data for low bandwidth rpi
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jun 27, 2024
1 parent 4c225a2 commit b7ba728
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/ansible_openvpn/playbooks/fetch_rpi_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
destination: '/home/semaphore/data/to_process/'
ansible_rsync_path: '/usr/bin/timeout 600 /usr/bin/rsync'
year_week: "{{ hostvars['localhost']['year_week'] }}"
disabled_sync: ["b827eb11d0a3","b827eb423d54","b827eb63c0d3"]
tasks:
# - name: get current RX
# shell: /usr/sbin/ifconfig tun0 | grep "RX packets" | awk '{print $5}'
Expand All @@ -35,6 +36,7 @@
poll: 5
register: rpi_mac
- name: data synchronization out mem
when: rpi_mac.std_out not in disabled_sync
vars:
ansible_remote_tmp: /run/user/1000
ansible.posix.synchronize:
Expand All @@ -49,6 +51,7 @@
- "--partial-dir=.rsync-partial"
register: rsync_stats
- name: data synchronization out sd
when: rpi_mac.std_out not in disabled_sync
ansible.posix.synchronize:
mode: 'pull'
src: '{{ source2 }}'
Expand Down

0 comments on commit b7ba728

Please sign in to comment.