Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

stackhpc/ansible-role-grubcmdline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notice

This role has been moved to https://github.com/stackhpc/ansible-collection-linux/tree/main/roles/grubcmdline. Please contribute any patches to that collection.

stackhpc.grubcmdline

Sets the default kernel command line

Requirements

grub

Role Variables

Please see defaults/main.yml

Dependencies

None

Example Playbook

- name: Enable huge pages
  hosts: compute-hugepages
  vars:
    kernel_cmdline:
      - transparent_hugepage=never
      - default_hugepagesz=2M
      - hugepagesz=2M
      - hugepages=184320
    kernel_cmdline_remove:
      - hugepage
  tasks:
    - include_role:
        name: stackhpc.grubcmdline
  handlers:
    - name: reboot
      include_tasks: tasks/reboot.yml

License

Apache

Author Information

Will Szumski