From 0d1009eafe61924b89dd504898a0874841914a83 Mon Sep 17 00:00:00 2001 From: Dirk Pahl Date: Fri, 12 Jun 2020 16:22:43 +0200 Subject: [PATCH] Use default value for environment variables --- tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 756a405..4dfb415 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -44,7 +44,7 @@ regexp: '^{{ item.key }}=' line: "{{ item.key }}={{ item.value }}" create: yes - loop: "{{ kafka_environment_variables|dict2items }}" + loop: "{{ kafka_environment_variables | default({}) | dict2items }}" when: kafka_environment_variables is defined - name: Create kafka service