From f600913f2f26f10455e8e87a164e3da750c162a9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 13 Jan 2019 00:19:33 +0100 Subject: [PATCH] not need to set a default for install.kernel_cmdline because is skipped if the varaibled is undefined --- ansible/roles/base/tasks/07grub.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4