From e2dcda4a81ffbfb50a1f8e0bd7aa554738b5f49a Mon Sep 17 00:00:00 2001 From: Raphael Kastner Date: Mon, 28 Oct 2019 14:10:56 +0100 Subject: [PATCH] fix condition --- tasks/setup-Debian.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index ae7187d..f286052 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -43,4 +43,5 @@ template: src: apt-preferences-docker.j2 dest: /etc/apt/preferences.d/docker - when: docker_apt_version | length > 0 + when: docker_apt_version is defined and + docker_apt_version | length > 0