From b48741f289526d3b02b4b3729811e44e337458f3 Mon Sep 17 00:00:00 2001 From: Bajal Date: Mon, 4 Apr 2022 20:46:43 -0400 Subject: [PATCH 1/2] Update conditional for docker-compose 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 4ccd44a..cd7cb02 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.stdout is defined + docker_compose_current_version is defined and (docker_compose_version | regex_replace('v', '')) not in docker_compose_current_version.stdout - name: Install Docker Compose (if configured). From a9fe63f7680e0ccb842ab4594078a5c7d372deba Mon Sep 17 00:00:00 2001 From: Bajal Date: Mon, 4 Apr 2022 21:01:36 -0400 Subject: [PATCH 2/2] 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).