ansible/base: Use map + join rather than a complicated loop
[noc.git] / ansible / usb-install.yml
index 7469fe2..d5730d9 100644 (file)
@@ -49,7 +49,7 @@
               LABEL linux
                KERNEL linux
                INITRD initrd.preseed.gz
-               APPEND install vga=off console=ttyS0,115200n8
+               APPEND install {{ map(lambda opt, val: opt + ' ' + val, (install.kernel_cmdline or {}).items()).join(' ') }}
 
         - name: Make the USB disk bootable
           pause: