Last active
January 18, 2017 22:14
-
-
Save alicegoldfuss/5adf78907d0b1e222e6539d63f0ca43d to your computer and use it in GitHub Desktop.
disable intel_idle ansible play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This play assumes you have a replacement grub config stored locally in
/files/grub
whereintel_idle.max_cstate=0
is set.Also I haven't tested this yet.