From 9ae6e0c31e9e972de0b4a6acdec53bbe21ef1029 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 23 Oct 2024 17:56:53 +0200 Subject: [PATCH] dsfgd --- roles/mgrote_docker_compose_inline/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/mgrote_docker_compose_inline/tasks/main.yml b/roles/mgrote_docker_compose_inline/tasks/main.yml index fa69b72a..94a28ba1 100644 --- a/roles/mgrote_docker_compose_inline/tasks/main.yml +++ b/roles/mgrote_docker_compose_inline/tasks/main.yml @@ -51,11 +51,13 @@ when: - item.network is defined -- name: (re)start container +- name: restart changed container become: true community.docker.docker_compose_v2: project_src: "{{ compose_dest_basedir }}/{{ item.name }}" state: restarted + dependencies: true + pull: missing loop: "{{ compose_files }}" when: - item.state == "present"