From 2f7e3ae89375432d89814eaebbb3b6979223eeb1 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 28 Jul 2023 23:16:27 +0200 Subject: [PATCH] Build on docker compose up as well --- playbooks/roles/docker_compose/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/docker_compose/tasks/main.yaml b/playbooks/roles/docker_compose/tasks/main.yaml index dafe558..23c17f4 100644 --- a/playbooks/roles/docker_compose/tasks/main.yaml +++ b/playbooks/roles/docker_compose/tasks/main.yaml @@ -72,9 +72,9 @@ changed_when: false register: docker_compose__ps_json_before_up -- name: docker compose up --detach --pull always +- name: docker compose up --detach --pull always --build ansible.builtin.command: - cmd: /usr/bin/docker compose up --detach --pull always + cmd: /usr/bin/docker compose up --detach --pull always --build chdir: /ansible_docker_compose become: true changed_when: false