From 460aa7d6e1679c30c9600dcad89e3cffb8d4c92e Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Sun, 1 Jan 2023 22:10:19 -0800 Subject: config: update docker-compose cronjob --- bean.jinwei.me/config/roles/beancount/tasks/main.yaml | 8 +------- 1 file changed, 1 insertion(+), 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 @@ dest: "{{ bean_home }}/docker-compose.yaml" mode: 0644 -- name: start ledger container using docker-compose - community.docker.docker_compose: - project_name: ledger - project_src: "{{ bean_home }}" - register: output - - name: setup cronjob for upgrade cron: cron_file: ledger_upgrade @@ -35,4 +29,4 @@ minute: "0" hour: "*" day: "*" - job: "cd {{ bean_home }} && /usr/local/bin/docker-compose pull && /usr/local/bin/docker-compose up -d" + job: "cd {{ bean_home }} && /usr/local/bin/docker-compose pull && /usr/local/bin/docker-compose up -d --force-recreate" -- cgit v1.2.3