mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01: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