diff options
author | 2020-10-15 09:14:49 +0000 | |
---|---|---|
committer | 2020-10-15 09:20:18 +0000 | |
commit | fc9d16842e1a5aa7191bfa012fc42932bbaabc2a (patch) | |
tree | a18581f6f024156fdd71002bc4991160069e8d2a /resources/tools/testbed-setup/ansible/roles/vpp_device/tasks | |
parent | c240fc8d57080571d2575d966b6d1d20f551a05e (diff) |
Ansible: Rework grub command line
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I8abfc47e5e816e2ab4b39d7ad7575e672ae19ca6
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/vpp_device/tasks')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml index b93853b01f..33b551715f 100644 --- a/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml @@ -82,7 +82,7 @@ path: "/etc/default/grub" state: "present" regexp: "^GRUB_CMDLINE_LINUX=" - line: 'GRUB_CMDLINE_LINUX="hugepagesz=2M hugepages={{ grub.nr_hugepages }}"' + line: "GRUB_CMDLINE_LINUX=\"{% for key, value in grub.items() %}{% if value %}{{key}}={{value}} {% else %}{{key}} {% endif %}{% endfor %}\"" notify: - "Update GRUB" - "Reboot server" |