[FIX] robusterer Container Neustart; ignoriere environment.env änderungen nicht
This commit is contained in:
parent
b7c57021a8
commit
d4110a0608
@ -55,6 +55,7 @@
|
|||||||
dest: "/opt/gitea/environment.env"
|
dest: "/opt/gitea/environment.env"
|
||||||
owner: root
|
owner: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
register: gitea_env
|
||||||
|
|
||||||
- name: Upload docker-compose.yaml
|
- name: Upload docker-compose.yaml
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@ -62,9 +63,12 @@
|
|||||||
dest: /opt/gitea/docker-compose.yaml
|
dest: /opt/gitea/docker-compose.yaml
|
||||||
owner: root
|
owner: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
register: gitea_container
|
||||||
|
|
||||||
- name: Create Gitea container
|
- name: Create / Recreate Gitea container
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
project_src: /opt/gitea
|
project_src: /opt/gitea
|
||||||
state: present
|
state: present
|
||||||
recreate: smart
|
restarted: true
|
||||||
|
when: gitea_env.changed or gitea_container.changed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user