Merge pull request #339 from bajalnyt/master

Update conditional for docker-compose check
This commit is contained in:
Jeff Geerling 2022-04-04 22:08:31 -05:00 committed by GitHub
commit 9b819a6c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
path: "{{ docker_compose_path }}" path: "{{ docker_compose_path }}"
state: absent state: absent
when: > when: >
docker_compose_current_version.stdout 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 and (docker_compose_version | regex_replace('v', '')) not in docker_compose_current_version.stdout
- name: Install Docker Compose (if configured). - name: Install Docker Compose (if configured).