aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/enable_hugepages_on_boot/tasks/main.yml
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-09-28 22:08:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-28 22:08:25 +0000
commit12722dca61e657942182b236ca0281aabee47b96 (patch)
tree4127450f349c010e15da8a03925a1c80a1a81ce0 /ansible/roles/enable_hugepages_on_boot/tasks/main.yml
parent24becc79e0abecaaa24aa018ecac4476738e0a66 (diff)
parent619acb7a3e0e2d33699a25cc0e5ffda78c4c4f8c (diff)
Merge "add collectd ansible"
Diffstat (limited to 'ansible/roles/enable_hugepages_on_boot/tasks/main.yml')
-rwxr-xr-xansible/roles/enable_hugepages_on_boot/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/enable_hugepages_on_boot/tasks/main.yml b/ansible/roles/enable_hugepages_on_boot/tasks/main.yml
index 6e7657a39..c5c615bb3 100755
--- a/ansible/roles/enable_hugepages_on_boot/tasks/main.yml
+++ b/ansible/roles/enable_hugepages_on_boot/tasks/main.yml
@@ -17,6 +17,11 @@
register: is_mine_huge
ignore_errors: True
+# won't work in chroot
+#- name: Detect EFI
+# stat: path="/sys/firmware/efi"
+# register: efi
+
- name: check if hugepages are set by someone else
command: "grep -o 'default_hugepagesz=' /etc/default/grub"
register: is_huge