From fa124cbbbcdfe036ce986a1e825be4e378b7139f Mon Sep 17 00:00:00 2001 From: Hannes Lau Date: Tue, 24 Oct 2017 11:16:03 +0200 Subject: [PATCH] [BUGFIX] Deal with empty list of dependencies Deal with the case that all dependencies of firefox are already present on the target system. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 22cde97..131e996 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,7 +10,7 @@ name="{{ item }}" state="latest" with_items: firefox_apt_deps.stdout_lines - when: firefox_apt_deps.stdout_lines is defined + when: firefox_apt_deps.stdout_lines is defined and firefox_apt_deps.stdout_lines|length > 0 - name: Create temp directory file: