ansible: Make install.kernel_cmdline a list
[noc.git] / ansible / roles / base / tasks / 07grub.yml
index d413ff6..2a2dda7 100644 (file)
@@ -3,6 +3,6 @@
   lineinfile:
     path: /etc/default/grub
     regexp: '^#?GRUB_CMDLINE_LINUX='
-    line: 'GRUB_CMDLINE_LINUX="{% for opt,val in (install.kernel_cmdline | default({})).items() %}{{ opt }}={{ val }}{% if not loop.last %} {% endif %}{% endfor %}"'
+    line: 'GRUB_CMDLINE_LINUX="{{ (install.kernel_cmdline or []).join(" ") }}"'
   when: install is defined and install.kernel_cmdline is defined
   notify: update grub