From 4e229bacffbccd08bcfb91b6721455769dea0061 Mon Sep 17 00:00:00 2001 From: Julio <93286550+JulI0-concerto@users.noreply.github.com> Date: Sat, 8 Oct 2022 23:30:37 +0200 Subject: [PATCH] Disable ondemand service It prevents the on-demand service from resetting performance mode on reboot. --- roles/configure_ubuntu/tasks/cpu_governor.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/configure_ubuntu/tasks/cpu_governor.yaml b/roles/configure_ubuntu/tasks/cpu_governor.yaml index 97be116..4ca5179 100644 --- a/roles/configure_ubuntu/tasks/cpu_governor.yaml +++ b/roles/configure_ubuntu/tasks/cpu_governor.yaml @@ -13,3 +13,11 @@ tags: config.cpu when: scaling_governor_exists.stat.exists + +- name: Disable ondemand service + systemd: + name: ondemand + state: stopped + enabled: no + tags: + - config.cpu