diff --git a/handlers/backup.yaml b/handlers/backup.yaml index 5c82217..423c83e 100644 --- a/handlers/backup.yaml +++ b/handlers/backup.yaml @@ -8,8 +8,7 @@ - name: Stop Gitea for backup community.docker.docker_compose_v2: project_src: /opt/gitea - state: present - stopped: true + state: stopped register: docker_compose listen: - Backup Gitea diff --git a/handlers/main.yaml b/handlers/main.yaml index ee111d0..899a1f8 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -5,7 +5,7 @@ - name: Ensure Gitea is restarted community.docker.docker_compose_v2: project_src: /opt/gitea - restarted: true + state: restarted register: docker_compose - name: Ensure Gitea is running