From a9fe63f7680e0ccb842ab4594078a5c7d372deba Mon Sep 17 00:00:00 2001 From: Bajal Date: Mon, 4 Apr 2022 21:01:36 -0400 Subject: [PATCH] Needs additional check --- tasks/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/docker-compose.yml b/tasks/docker-compose.yml index cd7cb02..a5235d9 100644 --- a/tasks/docker-compose.yml +++ b/tasks/docker-compose.yml @@ -15,7 +15,7 @@ path: "{{ docker_compose_path }}" state: absent when: > - docker_compose_current_version is defined + (docker_compose_current_version is defined and docker_compose_current_version.stdout is defined) and (docker_compose_version | regex_replace('v', '')) not in docker_compose_current_version.stdout - name: Install Docker Compose (if configured).