ansible/base: Use map + join rather than a complicated loop
[noc.git] / ansible / usb-install.yml
index bf4ce64..d5730d9 100644 (file)
@@ -49,7 +49,7 @@
               LABEL linux
                KERNEL linux
                INITRD initrd.preseed.gz
-               APPEND install{% for opt,val in (install.kernel_cmdline | default({})).items() %} {{ opt }}={{ val }}{% endfor %}
+               APPEND install {{ map(lambda opt, val: opt + ' ' + val, (install.kernel_cmdline or {}).items()).join(' ') }}
 
         - name: Make the USB disk bootable
           pause: