From d03e1142f24cc11f739de2cdd6cadf0561e07259 Mon Sep 17 00:00:00 2001 From: Marius Meyer Date: Wed, 10 Apr 2024 19:57:47 +0200 Subject: [PATCH] use docker_compose_v2 module --- handlers/backup.yaml | 2 +- handlers/main.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/backup.yaml b/handlers/backup.yaml index 3bb34e4..5c82217 100644 --- a/handlers/backup.yaml +++ b/handlers/backup.yaml @@ -6,7 +6,7 @@ - Backup Gitea - name: Stop Gitea for backup - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: /opt/gitea state: present stopped: true diff --git a/handlers/main.yaml b/handlers/main.yaml index 131082e..ee111d0 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -3,13 +3,13 @@ file: backup.yaml - name: Ensure Gitea is restarted - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: /opt/gitea restarted: true register: docker_compose - name: Ensure Gitea is running - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: /opt/gitea register: docker_compose