diff options
author | clarkzjw <[email protected]> | 2023-01-01 21:54:03 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-01 21:54:03 -0800 |
commit | e5ec22f554227aebf9814925fa4165c55ca42bb6 (patch) | |
tree | ce8b1a1934384e887cd909ec56ea0c7df86003ca | |
parent | 55542d3204314c170c123dc066f93b4c8f9ac4bc (diff) | |
download | jinwei.me-e5ec22f554227aebf9814925fa4165c55ca42bb6.tar.gz |
config: add cronjob for ledger update
-rw-r--r-- | bean.jinwei.me/config/roles/beancount/tasks/main.yaml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bean.jinwei.me/config/roles/beancount/tasks/main.yaml b/bean.jinwei.me/config/roles/beancount/tasks/main.yaml index 98bf49d..0b0bc39 100644 --- a/bean.jinwei.me/config/roles/beancount/tasks/main.yaml +++ b/bean.jinwei.me/config/roles/beancount/tasks/main.yaml | |||
@@ -26,13 +26,13 @@ | |||
26 | project_src: "{{ bean_home }}" | 26 | project_src: "{{ bean_home }}" |
27 | register: output | 27 | register: output |
28 | 28 | ||
29 | #- name: setup cronjob for additional backup | 29 | - name: setup cronjob for upgrade |
30 | # cron: | 30 | cron: |
31 | # cron_file: wordpress_backup_hetzner | 31 | cron_file: ledger_upgrade |
32 | # user: root | 32 | user: root |
33 | # state: present | 33 | state: present |
34 | # name: "wordpress backup" | 34 | name: "ledger upgrade" |
35 | # minute: "0" | 35 | minute: "0" |
36 | # hour: "0" | 36 | hour: "*" |
37 | # day: "*" | 37 | day: "*" |
38 | # job: "tar caf /tmp/wordpress-$(date -u +\\%Y-\\%m-\\%d-\\%H-\\%M-\\%S\\%Z).tar.xz {{ wordpress_home }} && rsync -azvP /tmp/wordpress-*.tar.xz {{ samba_backup_path }}" | 38 | job: "cd {{ bean_home }} && docker-compose pull && docker-compose up -d" |