From 6d90fe05109e93bb4c86dc860610caa5e9a598a8 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Sat, 29 Apr 2023 14:08:02 +0000 Subject: [PATCH] =?UTF-8?q?[FIX]=20Starte=20Gitea,=20nachdem=20es=20f?= =?UTF-8?q?=C3=BCr=20das=20Backup=20gestoppt=20wurde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/main.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index 261514c..eecdfdb 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -74,12 +74,13 @@ mode: "600" register: gitea_container - - name: Create / Recreate Gitea + - name: Start Gitea community.docker.docker_compose: project_src: /opt/gitea - state: present - restarted: true - when: gitea_env.changed or gitea_container.changed + register: docker_compose + + - ansible.builtin.debug: + var: docker_compose - name: Check if {{ gitea.hostname }}.{{ gitea.domain }} is available and returning status 200 ansible.builtin.uri: @@ -108,6 +109,7 @@ project_src: /opt/gitea state: present restarted: true + always: - name: Check if {{ gitea.hostname }}.{{ gitea.domain }} is available and returning status 200 ansible.builtin.uri: