mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-24 16:44:41 +03:00
Merge pull request #384 from berthin/master
Fix condition for empty docker compose svn
This commit is contained in:
commit
9154e3bf75
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
docker_compose_current_version: "{{ docker_compose_vsn.stdout | regex_search('(\\d+(\\.\\d+)+)') }}"
|
docker_compose_current_version: "{{ docker_compose_vsn.stdout | regex_search('(\\d+(\\.\\d+)+)') }}"
|
||||||
when: docker_compose_vsn.stdout is defined
|
when: >
|
||||||
|
docker_compose_vsn.stdout is defined
|
||||||
|
and (docker_compose_vsn.stdout | length > 0)
|
||||||
|
|
||||||
- name: Delete existing docker-compose version if it's different.
|
- name: Delete existing docker-compose version if it's different.
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user