diff --git a/tasks/main.yaml b/tasks/main.yaml index 261514c..4d5cd8b 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: output - 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: