From: Christian Pointner Date: Sat, 12 Jan 2019 23:19:33 +0000 (+0100) Subject: not need to set a default for install.kernel_cmdline because is skipped if the varaib... X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=f600913f2f26f10455e8e87a164e3da750c162a9;p=noc.git not need to set a default for install.kernel_cmdline because is skipped if the varaibled is undefined --- diff --git a/ansible/roles/base/tasks/07grub.yml b/ansible/roles/base/tasks/07grub.yml index 2a2dda7..4aa2122 100644 --- a/ansible/roles/base/tasks/07grub.yml +++ b/ansible/roles/base/tasks/07grub.yml @@ -3,6 +3,6 @@ lineinfile: path: /etc/default/grub regexp: '^#?GRUB_CMDLINE_LINUX=' - line: 'GRUB_CMDLINE_LINUX="{{ (install.kernel_cmdline or []).join(" ") }}"' + line: 'GRUB_CMDLINE_LINUX="{{ install.kernel_cmdline | join(" ") }}"' when: install is defined and install.kernel_cmdline is defined notify: update grub