Skip to content

Instantly share code, notes, and snippets.

@alicegoldfuss
Last active January 18, 2017 22:14
Show Gist options
  • Save alicegoldfuss/5adf78907d0b1e222e6539d63f0ca43d to your computer and use it in GitHub Desktop.
Save alicegoldfuss/5adf78907d0b1e222e6539d63f0ca43d to your computer and use it in GitHub Desktop.
disable intel_idle ansible play
---
- hosts: # add hosts list as needed
serial: 1
sudo: true
tasks:
- name: Copy local grub config to remote host
copy: src=./files/grub dest=/etc/default/grub owner=root group=root mode=0644
- name: Recompile grub config
shell: /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg
- name: Restart machine
shell: shutdown -r now "Ansible updates triggered"
async: 0
poll: 0
ignore_errors: true
- name: Waiting for server to come back
local_action: wait_for host={{ inventory_hostname }}
state=started
sudo: false
- name: Check if intel_idle is deactivated
shell: less /proc/cmdline | grep intel_idle.max_cstate=0
@alicegoldfuss
Copy link
Author

This play assumes you have a replacement grub config stored locally in /files/grub where intel_idle.max_cstate=0 is set.

Also I haven't tested this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment