Issue #2: Only use variable if it's defined.

This commit is contained in:
Jeff Geerling 2017-05-03 10:59:50 -05:00
parent d072a187e4
commit ab49c85d98

View File

@ -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: