Return default for change list

If the task or role is skipped, ansible still tries to evaluate
variables and doesn't consider set_fact, having ansible change
list as undefined, which stops playbook with fatal error.

Change-Id: I7417918b26893fb37bed35260eee7cc98feaea9a
This commit is contained in:
Sagi Shnaidman 2017-01-29 10:50:24 +02:00
parent 376509fb44
commit 5a0e394294
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@
- name: Clone and build the specific DLRN projects
include: dlrn-build.yml artg_change={{ item }}
with_items: '{{ artg_change_list }}'
with_items: '{{ artg_change_list|default([]) }}'
when: item.project not in artg_skipped_projects
- block: