2 - name: set kernel command line options
4 path: /etc/default/grub
5 regexp: '^#?GRUB_CMDLINE_LINUX='
6 line: 'GRUB_CMDLINE_LINUX="{{ map(lambda opt, val: opt + "=" + val, (install.kernel_cmdline or {}).items()).join(" ") }}"'
7 when: install is defined and install.kernel_cmdline is defined