Skip to content

Commit

Permalink
fix(provision): make topic_tasks default to []
Browse files Browse the repository at this point in the history
You cannot loop over an omit placeholder, but passing an empty list
works.
  • Loading branch information
eliasnorrby committed Apr 17, 2020
1 parent 200151c commit 615173d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _provision/roles/eliasnorrby.dotfiles/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

- name: include topic tasks for present topics
include_tasks: "{{ outer_item.file_path }}"
loop: "{{ topic_tasks | default(omit) }}"
loop: "{{ topic_tasks | default([]) }}"
loop_control:
loop_var: outer_item
when: (present_topics | selectattr('config.path','equalto',outer_item.topic_path) | first) is defined
Expand Down

0 comments on commit 615173d

Please sign in to comment.