aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-01 22:10:19 -0800
committerclarkzjw <[email protected]>2023-01-01 22:10:19 -0800
commit460aa7d6e1679c30c9600dcad89e3cffb8d4c92e (patch)
tree2ff4fc0f14ffd5e408bacf5336a7da49038b903e
parent29bab7ef70b06a8bc48a43bc5d5ed519ed517ed5 (diff)
downloadjinwei.me-460aa7d6e1679c30c9600dcad89e3cffb8d4c92e.tar.gz
config: update docker-compose cronjob
-rw-r--r--bean.jinwei.me/config/roles/beancount/tasks/main.yaml8
1 files changed, 1 insertions, 7 deletions
diff --git a/bean.jinwei.me/config/roles/beancount/tasks/main.yaml b/bean.jinwei.me/config/roles/beancount/tasks/main.yaml
index 0fbcf9d..088da0f 100644
--- a/bean.jinwei.me/config/roles/beancount/tasks/main.yaml
+++ b/bean.jinwei.me/config/roles/beancount/tasks/main.yaml
@@ -20,12 +20,6 @@
20 dest: "{{ bean_home }}/docker-compose.yaml" 20 dest: "{{ bean_home }}/docker-compose.yaml"
21 mode: 0644 21 mode: 0644
22 22
23- name: start ledger container using docker-compose
24 community.docker.docker_compose:
25 project_name: ledger
26 project_src: "{{ bean_home }}"
27 register: output
28
29- name: setup cronjob for upgrade 23- name: setup cronjob for upgrade
30 cron: 24 cron:
31 cron_file: ledger_upgrade 25 cron_file: ledger_upgrade
@@ -35,4 +29,4 @@
35 minute: "0" 29 minute: "0"
36 hour: "*" 30 hour: "*"
37 day: "*" 31 day: "*"
38 job: "cd {{ bean_home }} && /usr/local/bin/docker-compose pull && /usr/local/bin/docker-compose up -d" 32 job: "cd {{ bean_home }} && /usr/local/bin/docker-compose pull && /usr/local/bin/docker-compose up -d --force-recreate"
Powered by cgit v1.2.3 (git 2.41.0)