Skip to content

Commit

Permalink
Use default value for environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkaholic committed Jun 12, 2020
1 parent 3ed84bd commit 0d1009e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d1009e

Please sign in to comment.