From fc9d16842e1a5aa7191bfa012fc42932bbaabc2a Mon Sep 17 00:00:00 2001 From: pmikus Date: Thu, 15 Oct 2020 09:14:49 +0000 Subject: Ansible: Rework grub command line Signed-off-by: pmikus Change-Id: I8abfc47e5e816e2ab4b39d7ad7575e672ae19ca6 --- .../testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks') diff --git a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml index 3a8f35b57f..c437b40f86 100644 --- a/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml @@ -19,7 +19,7 @@ path: "/etc/default/grub" state: "present" regexp: "^GRUB_CMDLINE_LINUX=" - line: "{{ grub_cmdline_linux[ansible_machine] | join() }}" + line: "GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value %}{{key}}={{value}} {% else %}{{key}} {% endif %}{% endfor %}\"" notify: - "Update GRUB" tags: -- cgit 1.2.3-korg