kill woodpecker and firefly iii
change
commit 71237d933e5a0e68497ff2957f5b741ed56f4805
author Alpha Chen <alpha@kejadlen.dev>
date
parent 4bfc0c33
diff --git a/lotus-land-story/firefly-iii.yml b/lotus-land-story/firefly-iii.yml
index 39d37a7..6971df0 100644
--- a/lotus-land-story/firefly-iii.yml
+++ b/lotus-land-story/firefly-iii.yml
@@ -22,9 +22,10 @@
 
     - name: Run Firefly III
       community.docker.docker_container:
-        restart: true
         name: firefly-iii
         image: fireflyiii/core:version-6.0.22
+        state: absent
+        restart: true
         env:
           APP_KEY: "{{ firefly_iii.app_key }}"
           APP_URL: https://{{ firefly_iii.subdomain }}.{{ domain }}
@@ -47,9 +48,10 @@
 
     - name: Run Firefly III cron trigger
       community.docker.docker_container:
-        restart: true
         name: firefly-iii-cron
         image: alpine
+        restart: true
+        state: absent
         command: >
           sh -c
           "echo \"0 3 * * * wget -qO- http://firefly-iii:8080/api/v1/cron/{{ firefly_iii.static_cron_token }}\"
diff --git a/lotus-land-story/main.yml b/lotus-land-story/main.yml
index 70f547c..062364c 100644
--- a/lotus-land-story/main.yml
+++ b/lotus-land-story/main.yml
@@ -99,8 +99,6 @@
 - import_playbook: grafana.yml     # noqa: name[play]
 - import_playbook: loki.yml        # noqa: name[play]
 - import_playbook: miniflux.yml    # noqa: name[play]
-- import_playbook: woodpecker.yml  # noqa: name[play]
-- import_playbook: firefly-iii.yml # noqa: name[play]
 
 - import_playbook: caddy.yml       # noqa: name[play]
 
diff --git a/lotus-land-story/woodpecker.yml b/lotus-land-story/woodpecker.yml
index ec5732e..74cafdd 100644
--- a/lotus-land-story/woodpecker.yml
+++ b/lotus-land-story/woodpecker.yml
@@ -16,6 +16,7 @@
       community.docker.docker_container:
         name: woodpecker-server
         image: woodpeckerci/woodpecker-server:v0.15.11
+        state: absent
         restart: true
         env:
           # WOODPECKER_OPEN: "true"
@@ -36,6 +37,7 @@
       community.docker.docker_container:
         name: woodpecker-agent
         image: woodpeckerci/woodpecker-agent:v0.15.11
+        state: absent
         restart: true
         env:
           WOODPECKER_SERVER: woodpecker-server:9000