mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-23 16:22:59 +03:00
Issue #2: Only use variable if it's defined.
This commit is contained in:
parent
d072a187e4
commit
ab49c85d98
@ -9,7 +9,9 @@
|
||||
file:
|
||||
path: /usr/local/bin/docker-compose
|
||||
state: absent
|
||||
when: docker_compose_version not in docker_compose_current_version.stdout
|
||||
when: >
|
||||
docker_compose_current_version.stdout is defined
|
||||
and docker_compose_version not in docker_compose_current_version.stdout
|
||||
|
||||
- name: Install Docker Compose (if configured).
|
||||
get_url:
|
||||
|
Loading…
Reference in New Issue
Block a user