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

master
Jeff Geerling 2017-05-03 10:59:50 -05:00
parent d072a187e4
commit ab49c85d98
1 changed files with 3 additions and 1 deletions

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: