[FIX] robusterer Container Neustart; ignoriere environment.env änderungen nicht

This commit is contained in:
Marius Alwan Meyer 2023-03-11 21:39:58 +01:00
parent b7c57021a8
commit d4110a0608

View File

@ -55,6 +55,7 @@
dest: "/opt/gitea/environment.env"
owner: root
mode: 0600
register: gitea_env
- name: Upload docker-compose.yaml
ansible.builtin.template:
@ -62,9 +63,12 @@
dest: /opt/gitea/docker-compose.yaml
owner: root
mode: 0600
register: gitea_container
- name: Create Gitea container
- name: Create / Recreate Gitea container
community.docker.docker_compose:
project_src: /opt/gitea
state: present
recreate: smart
restarted: true
when: gitea_env.changed or gitea_container.changed