Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Install a list of packages
- apt:
- name: "{{ packages }}"
- vars:
- packages:
- - cpufrequtils
- - name: cpufreq to maximum
- lineinfile: path=/etc/default/cpufrequtils regexp='^GOVERNOR\="performance"' line='GOVERNOR="performance"'
- tags: cpuperf
- - name: disable ondemand
- command: update-rc.d ondemand disable
- ignore_errors: yes
- tags: cpuperf
- - name: restart cpufrequtils
- service: name=cpufrequtils state=restarted
- tags: cpuperf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement