Commit 9bd8dae9 authored by Maciej Delmanowski's avatar Maciej Delmanowski

[debops.kmod] Flatten dependent variables

The configuration defined by other Ansible roles via dependent variables
should be flattened to a 1-level list before processing. Otherwise data
passed as multi-level list can break the 'parse_kv_items' filter.
parent 9538001e
......@@ -96,7 +96,7 @@ kmod__dependent_modules: []
# The variable that combines all lists of kernel module parameters and passes
# them to the role tasks.
kmod__combined_modules: '{{ kmod__default_modules
+ kmod__dependent_modules
+ lookup("flattened", kmod__dependent_modules, wantlist=True)
+ kmod__modules
+ kmod__group_modules
+ kmod__host_modules }}'
......@@ -140,7 +140,7 @@ kmod__dependent_load: []
# Variable which combines all of the kernel module load lists and passes them
# to the role tasks.
kmod__combined_load: '{{ kmod__dependent_load
kmod__combined_load: '{{ lookup("flattened", kmod__dependent_load, wantlist=True)
+ kmod__load
+ kmod__group_load
+ kmod__host_load }}'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment