Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Ansible: Rework grub command line
[csit.git]
/
resources
/
tools
/
testbed-setup
/
ansible
/
roles
/
vpp_device
/
tasks
/
main.yaml
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
b93853b
..
33b5517
100644
(file)
--- 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="
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"
notify:
- "Update GRUB"
- "Reboot server"