310803ca5bfaf5482de301fab1096de5bc1589a4
[csit.git] / resources / tools / testbed-setup / ansible / roles / performance_tuning / tasks / turbo_boost.yaml
1 ---
2 # file: roles/performance_tuning/tasks/turbo_boost.yaml
3
4 - name: Turbo Boost - Install msr-tools
5   package:
6     name:
7       - "msr-tools"
8     state: latest
9     update_cache: true
10   tags:
11     - turbo-boost
12
13 - name: Turbo Boost - Load msr By Default
14   lineinfile:
15     path: "/etc/modules"
16     state: "present"
17     line: "msr"
18   tags:
19     - turbo-boost
20
21 - name: Turbo Boost - Custom Startup Service Hook
22   copy:
23     src: "files/disable-turbo-boost.service"
24     dest: "/etc/systemd/system/disable-turbo-boost.service"
25     owner: "root"
26     group: "root"
27     mode: "0644"
28   tags:
29     - turbo-boost
30
31 - name: Turbo Boost - Custom Startup Service Hook Enable
32   service:
33     name: "disable-turbo-boost"
34     enabled: yes
35   tags:
36     - turbo-boost