init
This commit is contained in:
16
enable-cpu-boost.yaml
Normal file
16
enable-cpu-boost.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: Enable CPU Boost on Linux Servers
|
||||
hosts: all
|
||||
become: yes
|
||||
user: root
|
||||
tasks:
|
||||
- name: Gather facts
|
||||
setup:
|
||||
filter: ansible_processor*
|
||||
|
||||
- name: Enable CPU boost for AMD processors
|
||||
shell: echo 1 > /sys/devices/system/cpu/cpufreq/boost
|
||||
when: "'AuthenticAMD' in ansible_processor[1]"
|
||||
|
||||
- name: Enable CPU boost for Intel processors
|
||||
shell: echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||||
when: "'GenuineIntel' in ansible_processor[1]"
|
||||
Reference in New Issue
Block a user