From e5ec22f554227aebf9814925fa4165c55ca42bb6 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Sun, 1 Jan 2023 21:54:03 -0800 Subject: config: add cronjob for ledger update --- .../config/roles/beancount/tasks/main.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bean.jinwei.me/config') 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 @@ project_src: "{{ bean_home }}" register: output -#- name: setup cronjob for additional backup -# cron: -# cron_file: wordpress_backup_hetzner -# user: root -# state: present -# name: "wordpress backup" -# minute: "0" -# hour: "0" -# day: "*" -# 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 }}" +- name: setup cronjob for upgrade + cron: + cron_file: ledger_upgrade + user: root + state: present + name: "ledger upgrade" + minute: "0" + hour: "*" + day: "*" + job: "cd {{ bean_home }} && docker-compose pull && docker-compose up -d" -- cgit v1.2.3