Commit e4cfdddb authored by Alexander Wellbrock's avatar Alexander Wellbrock

Turn off thinkpad x1 cpu throttling fix by default

since current firmware fix is available
parent f9a88210
Pipeline #721 failed with stage
......@@ -2,6 +2,7 @@
- hosts: clients
vars:
- hugo_sass: yes
- hardware_thinkpad_x1_carbon_6th_cpu_throttling_fix: yes
roles:
- sys-upgrade
- rpmfusion
......
---
# tasks file for lenovo carbon 6th gen patch cpu-throttling
- name: Install msr-tools
dnf:
name: msr-tools
state: present
tags:
- lenovo
- carbon
- 6th
- patches
- dnf
- packages
become: true
- block:
- name: Install msr-tools
dnf:
name: msr-tools
state: present
tags:
- lenovo
- carbon
- 6th
- patches
- dnf
- packages
become: true
- name: Install CPU-Throttling patch script
copy:
src: cpu-throttling.sh
dest: /usr/local/bin/cpu-throttling.sh
mode: 0755
register: cpu_throttling_script
tags:
- lenovo
- carbon
- 6th
- patches
become: true
- name: Install CPU-Throttling patch script
copy:
src: cpu-throttling.sh
dest: /usr/local/bin/cpu-throttling.sh
mode: 0755
register: cpu_throttling_script
tags:
- lenovo
- carbon
- 6th
- patches
become: true
- name: Install CPU-Throttling systemd service
when: cpu_throttling_script is succeeded
copy:
src: cpu-throttling.service
dest: /etc/systemd/system/cpu-throttling.service
register: cpu_throttling_service
tags:
- lenovo
- carbon
- 6th
- patches
become: true
- name: Install CPU-Throttling systemd service
when: cpu_throttling_script is succeeded
copy:
src: cpu-throttling.service
dest: /etc/systemd/system/cpu-throttling.service
register: cpu_throttling_service
tags:
- lenovo
- carbon
- 6th
- patches
become: true
- name: Install CPU-throttling systemd timer
when: cpu_throttling_service is succeeded
copy:
src: cpu-throttling.timer
dest: /etc/systemd/system/cpu-throttling.timer
register: cpu_throttling_timer
tags:
- lenovo
- carbon
- 6th
- patches
become: true
- name: Install CPU-throttling systemd timer
when: cpu_throttling_service is succeeded
copy:
src: cpu-throttling.timer
dest: /etc/systemd/system/cpu-throttling.timer
register: cpu_throttling_timer
tags:
- lenovo
- carbon
- 6th
- patches
become: true
- name: Enable CPU-throttling systemd service
when: cpu_throttling_service is succeeded
systemd:
name: cpu-throttling.service
enabled: yes
state: started
daemon_reload: yes
become: true
notify: "Throttling patch restart notification"
- name: Enable CPU-throttling systemd service
when: cpu_throttling_service is succeeded
systemd:
name: cpu-throttling.service
enabled: yes
state: started
daemon_reload: yes
become: true
notify: "Throttling patch restart notification"
- name: Enable CPU-throttling systemd timer
when: cpu_throttling_timer is succeeded
systemd:
name: cpu-throttling.timer
enabled: yes
state: started
daemon_reload: yes
become: true
- name: Enable CPU-throttling systemd timer
when: cpu_throttling_timer is succeeded
systemd:
name: cpu-throttling.timer
enabled: yes
state: started
daemon_reload: yes
become: true
when:
- hardware_thinkpad_x1_carbon_6th_cpu_throttling_fix is defined
- hardware_thinkpad_x1_carbon_6th_cpu_throttling_fix
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment