Add more directories to sort out, make the jobs run in parallel at 5AM

This commit is contained in:
Salt 2021-12-15 21:10:20 -06:00
parent 58196e3f24
commit e93124e556

View File

@ -46,13 +46,25 @@
cron: cron:
name: "{{ item.name }}" name: "{{ item.name }}"
minute: 0 minute: 0
hour: "*" hour: 5
job: "pgrep rsync || rsync -avHS --remove-source-files '/data/syncthing/data/{{ item.src }}/' '/data/syncthing/data/{{ item.dest }}/' && rmdir '/data/syncthing/data/{{ item.src }}' " job: "rsync -avHS --remove-source-files '/data/syncthing/data/{{ item.src }}/' '/data/syncthing/data/{{ item.dest }}/' && rmdir '/data/syncthing/data/{{ item.src }}' "
with_items: with_items:
# This works around a bug in my Android app lol # This works around a bug in my Android app lol
- name: husky test workaround - name: husky test workaround
src: Pictures/Husky Test src: Pictures/Husky Test
dest: Pictures/Unsorted/Husky dest: Pictures/Unsorted/Husky
- name: move messaging to unsorted
src: Pictures/Messaging
dest: Pictures/Unsorted/Messaging
- name: move discord to unsorted
src: Pictures/Discord
dest: Pictures/Unsorted/Discord
- name: move camera roll to unsorted
src: Pictures/Camera Roll
dest: Pictures/Unsorted/Camera Roll
- name: move cp2077 to screenshots
src: Pictures/Cyberpunk 2077
dest: Pictures/Unsorted/Screenshots/Vidya/Cyberpunk 2077
tags: [ cron ] tags: [ cron ]
roles: roles:
- role: backup - role: backup