Genericize that cronjob syntax for future endeavors
This commit is contained in:
parent
640e2e0efe
commit
58196e3f24
@ -42,9 +42,18 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- app/syncthing.yml
|
- app/syncthing.yml
|
||||||
tags: [ always ]
|
tags: [ always ]
|
||||||
# This works around a bug in my Android app lol
|
- name: assure movement cronjobs
|
||||||
- name: assure husky test sync cronjob
|
cron:
|
||||||
cron: name="husky sync" minute=0 hour="*" job="pgrep rsync || rsync -avHS /data/syncthing/data/Pictures/Husky\ Test/ /data/syncthing/data/Pictures/Unsorted/Husky/"
|
name: "{{ item.name }}"
|
||||||
|
minute: 0
|
||||||
|
hour: "*"
|
||||||
|
job: "pgrep rsync || rsync -avHS --remove-source-files '/data/syncthing/data/{{ item.src }}/' '/data/syncthing/data/{{ item.dest }}/' && rmdir '/data/syncthing/data/{{ item.src }}' "
|
||||||
|
with_items:
|
||||||
|
# This works around a bug in my Android app lol
|
||||||
|
- name: husky test workaround
|
||||||
|
src: Pictures/Husky Test
|
||||||
|
dest: Pictures/Unsorted/Husky
|
||||||
|
tags: [ cron ]
|
||||||
roles:
|
roles:
|
||||||
- role: backup
|
- role: backup
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user