Ansible: Role cleanup
[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   apt:
6     name:
7       - 'msr-tools'
8     state: 'present'
9     cache_valid_time: 3600
10     install_recommends: False
11   tags: 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: turbo-boost
19
20 - name: Turbo boost - Custom startup service hook
21   copy:
22     src: 'files/disable-turbo-boost.service'
23     dest: '/etc/systemd/system/disable-turbo-boost.service'
24     owner: 'root'
25     group: 'root'
26     mode: '0644'
27   tags: turbo-boost
28
29 - name: Turbo boost - Custom startup service hook enable
30   service:
31     name: 'disable-turbo-boost'
32     enabled: yes
33   tags: turbo-boost