diff options
author | clarkzjw <[email protected]> | 2023-01-01 21:54:32 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-01 21:54:32 -0800 |
commit | 5c65c9940db0525b6ae306ad04d1a423b855446b (patch) | |
tree | ce8b1a1934384e887cd909ec56ea0c7df86003ca /bean.jinwei.me/config/roles/beancount | |
parent | 946f9ba5625ae8100e7ab5de3cfabd9439e66a71 (diff) | |
parent | e5ec22f554227aebf9814925fa4165c55ca42bb6 (diff) | |
download | jinwei.me-5c65c9940db0525b6ae306ad04d1a423b855446b.tar.gz |
Merge pull request #4 from clarkzjw/bean.jinwei.me
config: add cronjob for ledger update
Diffstat (limited to 'bean.jinwei.me/config/roles/beancount')
-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" |